Abstract: A plant for the generation of methanol and for providing output power, preferably in the form of heat and/or electric energy. The plant comprises: (1) a water electrolysis facility which can be supplied by electric energy and water and which is designed in order to produce hydrogen gas and oxygen gas. The water electrolysis facility comprises a hydrogen gas outlet and an oxygen gas outlet; (2) a thermal engine with at least one combustion chamber designed for maintaining an oxygen-based combustion process in order to provide output power.