Wetland ecosystems play a crucial role in the global nitrogen cycle, helping to reduce nitrogen pollution. While plant diversity is known to influence ecosystem function, the exact mechanisms linking it to nitrogen retention and removal in wetlands have remained unclear.