This old diamond-mining town, perched on the rocky Atlantic coastline of this sparsely populated desert nation, last boomed at the start of the 20th century, when diamonds were discovered in the nearby dunes.

Now Namibia is positioning itself as a leader in the emerging market for another hot resource: green hydrogen, which is made using renewable electricity.

With bright sunshine 300 days a year and vicious winds that rip along a nearly 1,000-mile coast, renewable experts and government officials say the southwest African nation has outsize potential for renewable energy production. That is piquing the interest of investors seeking to grow their foothold in the mushrooming green-energy asset class.

Namibia is already putting up to €40 million in funding, worth $45.3 million, from former colonial power Germany to use on feasibility studies and pilot projects related to so-called green hydrogen. That is made by using renewable energy like wind or solar to separate and distill the hydrogen atoms in water, as opposed to making hydrogen from fossil fuels, which is known as gray hydrogen, or blue hydrogen if the emissions from the fossil fuels are captured.

Most hydrogen produced today isn’t green. Hydrogen can be burned in engines to power autos and airplanes instead of petroleum fuels, or in power plants instead of coal or natural gas.