Until modern times, nitrogen fixation was the major source of nitrogen for ecosystems. Nitrogen fixing bacteria either live symbiotically with plants, or live freely in the soil. The energetic cost is high for plants which support nitrogen-fixing symbionts—as much as 25% of GPP when measured in controlled conditions.