1. The biodiversity-ecosystem function hypothesis postulates that higher biodiversity is correlated with faster ecosystem process rates and increased ecosystem stability in fluctuating environments. Exhibiting high spatiotemporal habitat diversity, floodplains are highly productive ecosystems, supporting communities that are naturally resilient and highly diverse.2. We examined linkages among floodplain wetland habitats, invertebrate communities and their associated traits, and ecosystem function across 60 sites within the floodplain wetlands of the lower Wolastoq | Saint John River, New Brunswick, using structural equation modelling and Threshold Indicator Taxa ANalysis.3. We identified key environmental filters structuring invertebrate communities, by linking increased niche differentiation through shoreline change, flood pulse dynamics, and macrophyte bed complexity with increased taxa and functional diversity.4. Examination of traits linked to ecosystem functions revealed that more resilient wetlands with balance between primary productivity and decomposition as carbon sources were associated with greater functional evenness and richness, while habitat patches with elevated decomposition rates had lower functional richness, reflecting a simplified, more disturbed habitat. 5. While our more complex overarching SEM model was ultimately compromised by an overspecified number of pathways, our results nevertheless are indicative of a divergence between wetland and riverine ecosystems in their relationships linking biodiversity and ecosystem function, illustrating how to define ecosystem