The memorandum of understanding, which does not include a timeframe or targets for the project, aims to build on BP's presence in a country where it is already developing a large liquefied natural gas (LNG) facility.

Under the plan, BP will initially study the feasibility of building onshore wind and solar farms that are required for production of green hydrogen, which is produced by electrolysis using renewable energy.

"This is really the first phase of what we expect to be a pretty long-term development programme in Mauritania," BP's head of hydrogen, Felipe Arbelaez, told Reuters.

Later phases would focus on building electrolyisis and then hydrogen export infrastructure, Arbelaez added.

The MoU was signed by Mauritania's president Mohamed Ould Ghazouani and BP Chief Executive Bernard Looney on the sidelines of the COP27 climate talks in the Egyptian coastal resort town of Sharm el-Sheikh.

BP is aiming for a sharp increase to hydrogen production under Looney's plan to shift the company away from oil and gas in the coming decades.

(Reporting by Ron Bousso; Editing by David Goodman)