The French government said it had flown 1,079 people out of Niger as its evacuation operation ended in the west African country hit by a coup.
Defence minister Sebastien Lecornu said on X, formerly known as Twitter, that the evacuated French and foreign nationals "are now safe".
Meanwhile, the United States has ordered the evacuation of some staff and families from its embassy in Niger, the State Department said, even as the mission will remain open and senior leadership will continue working from there.
Niger is a key Western ally in a fight against Islamist insurgents. Foreign powers have condemned the takeover, fearing it could allow the militants to gain ground.
"Given ongoing developments in Niger and out of an abundance of caution, the Department of State is ordering the temporary departure of non-emergency US government personnel and eligible family members from the US Embassy in Niamey," State Department spokesperson Matthew Miller said in a statement.
"The United States remains committed to our relationship with the people of Niger and to Nigerien democracy. We remain diplomatically engaged at the highest levels," Mr Miller added.
He said the embassy remains open for limited, emergency services to US citizens.
The State Department is advising Americans not to travel to Niger.
The US, Germany, France and Italy have troops in Niger on counterinsurgency and training missions, helping the army to fight groups linked to al-Qaeda and Islamic State.
Italy is also evacuating European citizens from Niger.
There has been no announcement of US troops being withdrawn so far. There are about 1,100 US troops in Niger, where the military operates from two bases.
The US was criticised for its handling of the evacuation of US citizens in Sudan after the sudden eruption of violence between the military and the well-armed Rapid Support Forces paramilitary group on 15 April turned residential areas into war zones and prompted hundreds of thousands of people to flee.
Washington evacuated all government personnel from the US embassy in Khartoum and suspended operations there due to the security risks.
However, US citizens faced struggles leaving the country amid the violence and encountered robbery and looting.
Britain's foreign ministry said its embassy in Niger's capital Niamey will temporarily reduce the number of staff due to the security situation.
"There has been a military takeover in Niger, which has led to protests and unrest," the Foreign Office said.
"The group who organised the demonstration on 30 July (M62) have called for another on Thursday 3 August, Niger Independence Day. Protests can be violent and the situation could change quickly without warning."