A plant for the production of ammonia, said plant comprising: (a) a catalytic reactor having a nitrogen inlet for a nitrogen feed, a hydrogen inlet for a hydrogen feed, and an ammonia outlet for produced ammonia; (b) an electrolysis unit having a water inlet for a water feed, an oxygen outlet for oxygen, and a hydrogen outlet for hydrogen, said hydrogen outlet being in fluid communication with the hydrogen inlet of the reactor; (c) a nitrogen providing unit having at least one air inlet for an air stream, an oxygen outlet for an oxygen enriched stream, and a nitrogen outlet for a nitrogen stream; said nitrogen outlet being in fluid communication with the nitrogen inlet of the reactor; (d) a low pressure air compression and adsorber section, having an air inlet for an external air feed and an air outlet for LP compressed air, said air outlet being optionally in fluid communication with an air inlet of the nitrogen providing unit and being in switchable fluid communication with either an air liquefaction section, or a high pressure air compression unit having an outlet for compressed air in fluid communication with the air liquefaction section, said air liquefaction section comprising a turboexpander configured to drive a generator to provide a first energy source; (e) a liquid air storage having a liquid air inlet for liquid air obtained from the air liquefaction section, a closable outlet for liquid air in fluid connection with the nitrogen providing unit, and a closable outlet for liquid air in fluid connection with a generator section configured to provide a second energy source and an expanded air stream; (f) an electrical control unit configured to power the plant; wherein the plant has a power connection with a renewable energy source and with the first and second energy sources, and wherein the electrical control unit is configured to be switchable between the renewable energy source and the first and second energy sources, including combinations thereof. (a) a catalytic reactor having a nitrogen inlet for a nitrogen feed, a hydrogen inlet for a hydrogen feed, and an ammonia outlet for produced ammonia; (b) an electrolysis unit having a water inlet for a water feed, an oxygen outlet for oxygen, and a hydrogen outlet for hydrogen, said hydrogen outlet being in fluid communication with the hydrogen inlet of the reactor; (c) a nitrogen providing unit having at least one air inlet for an air stream, an oxygen outlet for an oxygen enriched stream, and a nitrogen outlet for a nitrogen stream; said nitrogen outlet being in fluid communication with the nitrogen inlet of the reactor; (d) a low pressure air compression and adsorber section, having an air inlet for an external air feed and an air outlet for LP compressed air, said air outlet being optionally in fluid communication with an air inlet of the nitrogen providing unit and being in switchable fluid communication with either an air liquefaction section, or a high pressure air compression unit having an outlet for compressed air in fluid communication with the air liquefaction section, said air liquefaction section comprising a turboexpander configured to drive a generator to provide a first energy source; (e) a liquid air storage having a liquid air inlet for liquid air obtained from the air liquefaction section, a closable outlet for liquid air in fluid connection with the nitrogen providing unit, and a closable outlet for liquid air in fluid connection with a generator section configured to provide a second energy source and an expanded air stream; (f) an electrical control unit configured to power the plant;