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
-
TVET sector stresses need for industry collaboration for skills development
14 mins -
Algerian man found alive in cellar after 26 years
19 mins -
South Africa seeks halt to Israel’s Gaza offensive
25 mins -
Cement price increment worst I have seen in recent times – Executive Secretary, GREDA
1 hour -
Family in shock as missing 12-year-old found dead in Korle Lagoon after Monday’s downpour
2 hours -
Samira Bawumia highlights Ghana’s strides in clean cooking solutions at UNESCO summit in France
2 hours -
US-funded Power Africa Program expands access to clean and affordable energy for Ghanaians
2 hours -
Asantehene’s daughter talks marriage, royal dynamics and cultural understanding
3 hours -
Encroachers on Ghana-Burkina Faso boundary line defy May 5 deadline to relocate
3 hours -
Government must invest in ECG to resolve revenue leakages – IES
3 hours -
The Right Turn: A Conclusive Guide to Road Safety
4 hours -
My father loves education – Asantehene’s daughter
4 hours -
EC insists IMANI got it wrong on SALL exclusion claims
5 hours -
‘I’ll not allow LGBTQ activities in Ghana’ – Bawumia
5 hours -
Africa must embrace PAPPS quickly; it’s the best thing to happen to the continent – eTranzact Global
5 hours