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
-
GPL 2024/2025: Accra Lions remain bottom after draw against Kpando
4 mins -
NDC condemns Dela Edem’s ‘unsavoury and distasteful’ about kufuor; issues public apology
14 mins -
‘Let them burn the sea; don’t return if Parliament is recalled’ – Asiedu Nketiah to NDC MPs
30 mins -
Bawumia’s commitment to excellence will ensure Ghana fulfills its potentials – Prof. Etse Sikanku
36 mins -
Ensign Global College marks 10th anniversary with 9th congregation
43 mins -
Over 80 educational projects to be commissioned this week
4 hours -
Kuami Eugene shows leadership; mobilises fellow artistes for peace song
6 hours -
The JOY Prime Made in Ghana Fair: Why not miss it!
6 hours -
GPL 2024/25: Struggling Asante Kotoko aim to bounce back against high-flying Nations FC
6 hours -
GES Deputy D-G admonishes students to uphold integrity and teamwork
7 hours -
Election 2024: Osabarima Dr Owusu Beyeeman advocates for peace
7 hours -
Fashion at Joy Prime Made in Ghana Fair
9 hours -
Alan Kyerematen wanted me to be his running mate – Okyeame Kwame
9 hours -
AFCON 2025Q: Otto Addo calls up Jerry Afriyie, two others for Niger clash
11 hours -
Vacant Seats: Supreme Court failed to strengthen Ghana’s democracy – NDC’s Beatrice Annan
11 hours