The military juntas in Burkina Faso and Mali have said any forcible attempt to restore President Mohamed Bazoum in neighbouring Niger will be seen as a declaration of war on them.
This follows a threat from a regional bloc that it would "take all measures" if the president was not reinstated.
Mr Bazoum is being held by Niger's coup leaders after being ousted last week.
France, the former colonial power, has now announced it is preparing to evacuate its citizens from Niger.
The region, threatened by an Islamist insurgency, has seen several coups in recent years.
Both Burkina Faso and Mali have severed ties with the West, in particular with France, and embraced new alliances with Russia.
Their warning marks a significant twist that could escalate the volatile regional situation.
The joint statement comes as Chadian President Mahamat Idris Déby has been in Niger leading mediation efforts on behalf of the West African bloc Ecowas to resolve the crisis.
In their joint statement, Burkina Faso and Mali threatened that if Ecowas intervened militarily, they would withdraw from the bloc and go to the defence of their eastern neighbour. They said such an intervention would be disastrous and destabilising.
Burkina Faso, Mali and Guinea are all currently suspended from Ecowas following coups in recent years.
Niger has been a key Western ally in the fight a jihadist extremism in the Sahel.
After Mali's military leaders chose to partner up with the Wagner Group of Russian mercenaries in 2021 instead of France's counter-terror force, Paris moved its centre of operations in the region to Niger.
On Sunday Ecowas gave the junta a week to reinstate the elected president, who has been confined to the presidential palace in the capital, Niamey.
Niger's junta has not commented on the demand, but vowed to defend the country from any "aggression" by regional or Western powers. It has accused France of planning military intervention.
France did not confirm or deny the claim.
In a statement quoted by Reuters news agency, the French foreign ministry said the only authority it recognised in Niger was President Bazoum's.
Latest Stories
-
Diplomatic Corps hail Bawumia’s integrity and leadership qualities
6 minutes -
To chocolate, Ghana’s pride by Bioko
24 minutes -
Chartered Institute of Bankers, Ghana, confers Honorary Fellow status on Victor Yaw Asante
47 minutes -
BoG marks end of year with Thanksgiving Service
59 minutes -
Ghana’s Next Sports Minister: The Debate Begins
1 hour -
Election 2024: NPP advised to be mindful of the reasons being ascribed to their election lost
1 hour -
GNFS urges Ghanaians to prevent fires during yuletide
1 hour -
Report tobacco users who smoke publicly – FDA advises
2 hours -
Abdallah Ali-Nakyea elevated to Associate Professor at UG School of Law
2 hours -
Kick2build commissions 5 libraries in Klo Agogo, donates school supplies
3 hours -
Slim and Fit Ghana donates to kids at Motherly Love Orphanage in Kwabenya
3 hours -
We’ll be reorganising ourselves for the battles of tomorrow – NPP
3 hours -
Ghanaian teacher Morkporkpor Fiador’s GWR Read-A-Thon attempt postponed
3 hours -
Revocation of licences of UT, Capital banks were strict requirements from IMF – Dr. Addison
3 hours -
MP Cynthia Morrison among 280 members expelled by Agona West NPP
3 hours