German Chancellor Olaf Scholz has pledged nearly $4.5bn (£3.6bn) by the end of the decade, for what’s known as the Africa-EU Green Energy Initiative.
He was speaking at the Compact with Africa summit in Berlin which brings together nations from the G20 and Africa.
The chancellor made a commitment to import green hydrogen from the continent.
German government officials say Africa can play a key role in helping Europe’s largest economy better diversify its supply chains, secure skilled labour, reduce illegal migration and achieve its transition to clean energy.
The Compact with Africa programme aims to generate further private investment in Africa.