I have often read the Haber-Bosch process credited with making the population explosion and drastic decreases in hunger possible, making it one of the most impactful discoveries in human history.
Many people think Haber-Bosch requires fossil fuels as input. It doesn't.
Haber-Bosch requires hydrogen. Currently this is nearly always fossil fuel derived and the carbon parts that are not needed are dumped into the atmosphere.
Venting is not required, just cheap and neither is using hydrogen from a fossil source.