The U.S. handed over its last military base in Niger — one of two crucial hubs for American counterterrorism operations in the country — to local authorities, the U.S. Department of Defense and Niger’s Ministry of Defense announced in a joint statement on Monday.

The handing over of Airbase 201 in the city of Agadez came after the U.S. troops withdrew earlier this month from Airbase 101, a small drone base in Niger’s capital of Niamey.

U.S. troops have until Sept. 15 to leave the Sahel country following an agreement with Nigerien authorities.

US MILITARY SEEKS NEW ALLIANCES IN WEST AFRICA AFTER NIGER OUSTING

There are about two dozen American soldiers who remain in Niger, largely for administrative duties related to the withdrawal, according to Sabrina Singh, the Pentagon spokeswoman. They are located at the U.S. embassy.

US and Nigerien flags

FILE- In this file photo taken Monday, April 16, 2018, a U.S. and Niger flag are raised side by side at the base camp for air forces and other personnel supporting the construction of Niger Air Base 201 in Agadez, Niger. The US handed over its last military base in Niger to the country's authorities, the US Department of Defense and Niger’s Ministry of Defense announced in a joint statement on Monday, Aug. 5, 2024.  (AP Photo/Carley Petesch, File)

In March, Niger’s ruling junta ended an agreement that allowed U.S. troops to operate in the West African country. A few months later, officials of the two countries announced in a joint statement that U.S. troops would complete their withdrawal by the middle of September.

Niger had been seen as one of the last nations in the restive region that Western nations could partner with to beat back growing jihadi insurgencies. The U.S. and France had more than 2,500 military personnel in the region until recently, and together with other European countries had invested hundreds of millions of dollars in military assistance and training.

In recent months Niger has pulled away from its Western partners, turning instead to Russia for security. In April, Russian military trainers arrived in Niger to reinforce the country’s air defenses.

Niger’s ouster of American troops following a coup last year has broad ramifications for the U.S. because it is forcing troops to abandon the critical base that was used for counterterrorism missions in the Sahel, a vast region south of the Sahara desert where groups linked to al-Qaida and the Islamic State group operate.

CLICK HERE TO GET THE FOX NEWS APP

One of those groups, Jama’a Nusrat ul-Islam wa al-Muslimin, known as JNIM, is active in Mali, Burkina Faso and Niger and is looking to expand into Benin and Togo.