Ammonia, the primary ingredient in nitrogen-based fertilizers, has helped feed the world since World War I. But making ammonia at an industrial scale takes a lot of energy, and it accounts for more than one percent of the world's total energy-related carbon emissions.
source https://www.lifetechnology.com/blogs/life-technology-news-blog/setting-the-stage-for-fuel-efficient-fertilizer