QuestionsHow does the type of swamp, that is, riverine vs palustrine, shape understorey and overstorey plant communities? Beyond swamp type, how do spatial, topographic, soil and landscape characteristics determine the taxonomic and functional structure of swamp communities?LocationSouthern Québec, Canada.MethodsWe sampled riverine and palustrine swamp plant communities in two watersheds within two ecoregions with contrasting land use. At the site scale (n = 56), we analyzed differences between riverine and palustrine swamps in plant richness and cover, species composition, and mean and dispersion values for ecological and morphological traits. At the plot scale (n = 213), we assessed the relative influence of a set of environmental parameters on species richness and cover, as well as on trait values using mixed models and on species composition using redundancy analysis.ResultsSpecies composition and the mean value of traits varied significantly between the two types of swamps. While riverine swamps hosted more non‐native species and were composed of more mesophilic species, shorter in height and with dominant resource acquisition strategies, palustrine swamps sheltered more non‐vascular taxa and tall hygrophilous vascular species with more conservative resource strategies. The surrounding landscape and local microtopography within swamps had a significant effect on plant community structure. Species diversity and trait dispersion increased from agricultural‐dominated to forest‐dominated landscapes, and from homogeneous to heterogeneous substrates.ConclusionsHabitats provided by riverine and palustrine swamps are complementary for wetland biodiversity. Our results underline the need to develop conservation plans to protect a wide variety of freshwater swamp types; for example, management actions that maintain or promote heterogeneous topographic forms at the site scale, and continuity of forest cover at the landscape scale.