The influence of bacterivorous nematodes (Diplolaimelloides meyli, Diplolaimelloides oschei, Diplolaimella dievengatensis, Panagrolaimus paetzoldi) on the development of a bacterial community growing on decaying cordgrass detritus was studied in laboratory microcosm experiments. Cordgrass leaves were incubated on a sediment surface with a natural bacterial mixture containing bacteria from sediment, cordgrass detritus and habitat water. The four nematode species were applied separately to the microcosms; controls remained without nematodes. Samples were taken seven times over a 65-day period. The bacterial community structure was analysed by means of DGGE of the 16S rRNA genes. Multi Dimensional Scaling showed grouping of the samples per treatment. Analysis of Similarities indicated that the differences between treatments were significantly larger than differences within treatments. Our results suggest that nematodes can have a significant structuring top-down influence on the 'pool' of bacteria growing on the detritus, even at low densities. Dissimilarities were similar between all treatments. Differences in bacterial community composition within the treatments with monhysterids (D. meyli, D. oschei and D. dievengatensis) can be explained by species-specific food preferences. Panagrolaimus paetzoldi on the other hand feeds unselectively, and thus affects the bacterial community differently. A top-down effect of the nematodes on the diversity of the bacterial community was only evident under high grazing pressure, i.e. in the presence of P. paetzoldi.