Germany found itself in the extremely uncomfortable position of fighting a two-front war without access to either Peru’s guano or Chile’s sodium nitrates. It was only Fritz Haber’s timely invention of ammonia synthesis that kept Germany fighting for four years.