More diverse stream communities have increased uptake of nutrients, including nitrate, a major pollutant, but the mechanism is little understood. This study manipulated algal species diversity in stream mesocosms with different flow habitats and disturbance regimes. Nitrogen uptake increased linearly with species richness, but when niche structure was experimentally removed the relationship disappeared.