Senegal’s troops are on alert to intervene in The Gambia if President Yahya Jammeh refuses to step down next month, the regional bloc Ecowas says.
Mr Jammeh initially accepted defeat in the 1 December poll, but later said it was flawed.
The Ecowas chairman said Senegal had been chosen to lead operations “to restore the people’s wishes” if needed.
President Jammeh has already said he will not be intimidated, saying Ecowas had no authority to interfere.
Mr Jammeh, who has ruled for 22 years, has lodged a case before the Supreme Court to annul the vote after the electoral commission changed some results.
The commission insists the outcome was not affected by an initial error and that property developer Adama Barrow won the poll and should be inaugurated on 19 January.
Marcel Alain de Souza, chairman of the Ecowas commission, said Mr Jammeh had until that date to comply with its mediators.
“If he is not going, we have stand-by forces already alerted and these stand-by forces have to be able to intervene to restore the people’s wish,” he said.
The Gambia, a former British colony, is surrounded on three sides by Senegal.
“Senegal has been selected by its peers to lead the operations but we do not wish to start a conflict,” Mr de Souza said.
“If he loves his people, he has to be able to negotiate an exit door calmly. If it doesn’t happen, the most radical means will be used.”
The BBC’s Umaru Fofana, who has been reporting from The Gambia, says Mr Jammeh’s defiant comments earlier this week make it clear that Nigeria’s President Muhammadu Buhari, appointed chief mediator by Ecowas, has a fine line to tread.
Mr Jammeh said that although he was a “man of peace”, that did not mean he would not defend himself and the country “courageously, patriotically and win”.
The stalemate is already taking a huge toll on the economy of the small West African country, which is popular with tourists, with the Chamber of Commerce saying businesses have been badly affected, our reporter says.
The Supreme Court says it will hear a case brought by Mr Jammeh’s party to cancel the result on 10 January.
President Jammeh, 51, seized power in 1994 and has been accused of human rights abuses, although he has held regular elections.
The Gambia has not had a smooth transfer of power since independence from Britain in 1965.
Sign up for GhanaStar.com to receive daily email alerts of breaking news in Ghana. GhanaStar.com is your source for all Ghana News. Get the latest Ghana news, breaking news, sports, politics, entertainment and more about Ghana, Africa and beyond.