Germany is seeking to expand its reliance on hydrogen as a future energy source to cut greenhouse emissions for highly polluting industrial sectors that cannot be electrified such as steel and chemicals.
Berlin will have to import up to 70% of its hydrogen demand in the future as Europe's largest economy aims to become climate-neutral by 2045, but it lacks the space and conditions for large wind and solar power production.
"Morocco has the best conditions for the energy transition and the production of green hydrogen. Germany wants to import hydrogen," Development Minister Svenja Schulze, who signed the alliance declaration with Moroccan Foreign Minister Nasser Bourita in Berlin, said in a statement.
"Germany has a very special position ... as an economic partner, as a trade partner, but also, of course, as a political partner," Bourita said in a news conference with his German counterpart Annalena Baerbock on Friday.
Schulze said the new green hydrogen economy must be fair and unlike the fossil-based economy.
"We want to do this fairly and in partnership, so that Morocco can also drive forward its energy transition and get its fair share of the value chains of the future," she added.
Given the geographical proximity, Germany supports electricity trading cooperation between Morocco and the European Union and the participation of German technology companies and suppliers to advance the hydrogen economy there, Economy Ministry State Secretary Stefan Wenzel said.
Since 2012, Germany has pledged subsidized loans of more than one billion euros for building renewable energy in Morocco, part of which went into building the world's largest solar thermal power plant in the southern Moroccan city of Ouarzazate.
The plant, funded by Germany, is expected to produce around 10,000 tonnes of hydrogen per year, enough to produce 50,000 tonnes of green steel, the ministry said, adding that an international public tender process for off takers is expected to begin this year and production starting in 2028 or 2029.
The alliance will also discuss how green hydrogen and related products can be transported to Germany and Europe and to what extent.