Various apparatuses and methods for producing ammonia are provided. One embodiment has uses in a plurality of environments and an electrode configured to be exposed to the plurality of environments. The electrode is configured to receive hydrogen while being exposed to one of the environments, reduce nitrogen while being exposed to another environment, and allow the hydrogen and nitrogen to react with each other to form ammonia. Other embodiments provide for simultaneous hydrogen oxidation and nitrogen reduction at the same electrode, which in turn react for formation of ammonia.