Bacterial diversity, community assembly, and the composition of the dissolved organic matter (DOM) were studied in three temporary subsurface karst pools with different flooding regimes. We tested the hypothesis that microorganisms introduced to the pools during floods faced environmental filtering toward a 'typical' karst water community, and we investigated whether DOM composition was related to floodings and the residence time of water in stagnant pools. As predicted, longer water residence consistently led to a decline of bacterial diversity. The microbial assemblages in the influx water harbored more 'exotic' lineages with large distances to known genotypes, yet these initial communities already appeared to be shaped by selective processes. β-Proteobacterial operational taxonomic units (OTUs) closely related to microbes from subsurface or surface aquatic environments were mainly responsible for the clustering of samples according to water residence time in the pools. By contrast, several Cytophagaceae and Flavobacteriaceae OTUs were related to different floodings, which were also the main determinants of DOM composition. A subset of compounds distinguishable by molecular mass and O/C content were characteristic for individual floods. Moreover, there was a transformation of DOM in stagnant pools toward smaller and more aromatic compounds, potentially also reflecting microbial utilization.