The country you’re thinking of is Gabon.

Gabon is a resource-rich nation on the west coast of Central Africa, known especially for its oil reserves , as well as manganese, timber, and other minerals. In August 2023 , military officers announced they had seized power just after a disputed election, deposing President Ali Bongo, whose family had ruled the country for over five decades.

So, if your question is:

“What’s the name of the resource-rich nation in Central Africa where there was a recent military takeover of the government?”

The short, direct answer is: Gabon.