Groundwater is the world’s largest freshwater resource and is critically important for irrigation, hence for global food security. Already, unsustainable groundwater pumping exceeds recharge from precipitation and rivers4 leading to significant groundwater level drops and losses of groundwater from its storage, especially for intensively irrigated regions. When groundwater levels drop, groundwater discharges to streams decline or possibly reverse in direction or even completely stop, decreasing streamflow with likely devastating effects on aquatic ecosystems. Here, we link groundwater level declines that result from groundwater pumping, to decreases in streamflow globally and estimate where and when environmentally critical streamflow, required to maintain healthy ecosystems, will no longer be sustained. We estimate that by 2050 environmental flow limits will be reached for approximately 42% - 79% of the watersheds with groundwater pumping worldwide and that this generally occurs before significant groundwater storage losses are experienced. Only a small groundwater level decline is needed to impact streamflow, making our estimates for streams near a transition to reversed groundwater discharge uncertain. For many areas, however, groundwater pumping rates are high and environmental flow limits are known to be severely exceeded. Compared to surface water use, the effects of groundwater pumping are significantly delayed. Our results thus reveal the current and future environmental legacy of groundwater use.