Fearing for his safety, the newly elected president of Gambia was sworn in on Thursday during a ceremony outside his country, part of a tense standoff in which foreign troops have crossed the border, trying to help him take power.
The inauguration took place in a nondescript room at the Gambian Embassy in Dakar, Senegal, because the new president, Adama Barrow, has so little control over his country that he did not even go home for the funeral of his son, who had been killed by a dog over the weekend.
Yahya Jammeh, the repressive leader of Gambia who seized power in a coup 22 years ago and once said he could rule for a billion years, is refusing to step down after losing the presidential election last month.
Troops from Senegal entered Gambia on Thursday, threatening to remove Mr. Jammeh by force if he does not step aside. A senior Senegalese government official said that the military was heading toward the Gambian capital, Banjul.
But Mr. Jammeh has warned that he will fight back. At least 26,000 Gambians, worried about violence, have fled the country, the United Nations says, and several senior officials in Mr. Jammeh’s government have resigned in protest or have left the nation as well.
Mr. Barrow’s team ultimately decided that the embassy in Dakar was the closest they could safely get to Gambian soil to start the new administration. Plans for an elaborate ceremony in a soccer stadium in Gambia’s capital had to be scrapped amid the standoff.
“It’s not necessarily the kind of ceremony to be jubilant about, but the situation is dangerous,” said Halif Sallah, a spokesman for Mr. Barrow.
Mr. Barrow arrived to enthusiastic whoops from hundreds of supporters and emerged from a motorcade beaming in an all-white outfit. He was sworn in just before 5 p.m., his hand on a Quran, pledging to serve his country “without fear or failure.” Several people who had gathered outside to watch on a large television screen shouted, “No more dictatorship!”
In a brief speech, the soft-spoken Mr. Barrow called on the Gambian security forces to pledge their loyalty to him, asking that the military stay in their barracks.
“We are one Gambia, one people,” he said.
Gambia has suffered high unemployment and political repression for years under Mr. Jammeh, with many citizens abandoning the country to risk perilous and often deadly journeys to Europe by sea.
But while Mr. Barrow has popular support in Gambia, it has not been enough to dislodge the erratic Mr. Jammeh. After initially accepting defeat in the election, he suddenly cited voting irregularities and called for a new vote.
“He is still the president,” said Seedy Njie, Gambia’s minister of information, communication and technology. “So, yes, he is here.”
This week, Gambia’s Parliament voted to extend Mr. Jammeh’s term for three months, though international officials denounced the move and many analysts consider it unconstitutional.
The United Nations Security Council unanimously adopted a resolution on Thursday supporting the efforts of the Economic Community of West African States to ensure a peaceful transfer of power to Mr. Barrow.
The resolution, presented by Senegal, which has a rotating seat on the council, offers “its full support to the ECOWAS in its commitment to ensure by political means first the respect of the will of the people of The Gambia” in the election that ousted Mr. Jammeh from office.
The speed with which the council has taken action shows how little support Mr. Jammeh has among world powers. He has overseen a legacy of human rights abuses, including imprisoning opponents and declaring that gay people should be beheaded. He has claimed to have the ability to cure AIDS with little more than an herbal concoction.
Mr. Barrow, by contrast, is an unassuming real estate agent who fell into the candidate’s position after Mr. Jammeh jailed other opposition party members. He left the country last week to meet with other West African leaders to discuss how to resolve the matter of taking over the presidency. Fearing for his safety at home, he wound up in Senegal, which surrounds Gambia on three sides and has a huge stake in Gambia’s stability.
Mr. Jammeh’s circle of friends has been shrinking considerably in recent days. The African Union said it would fail to recognize him as president as of Thursday. The presidents of Liberia and Mauritania met with him to urge him to step down, to no avail. His chief spokesman and longtime mouthpiece fled the country. Many of his ministers resigned.
Mr. Jammeh has tried numerous channels to cling to power. He appealed to the Supreme Court, but because he had fired most of the judges and failed to replace them, a full panel could not be assembled in time to hear his case.
This week, Mr. Jammeh declared a state of emergency in the country. He shut three independent radio stations and his officers arrested people selling #GambiaHasDecided T-shirts.
For now, it appears members of the security forces are staying loyal to him. But with Mr. Jammeh lacking a broad support base, his ability to provide for supporters who have lived off his good graces for years will be challenged.
“He has nothing left, really,” said Mr. Sallah, Mr. Barrow’s spokesman. “In the end I don’t see how he can stay.”
Mariam Sakho, a Gambian waitress in Banjul, said she was confident Mr. Jammeh would step down, especially now that many of his ministers were deserting him.
“Yesterday, my boss say I should not come to work because it is not safe,” she said. “But for me, I believe nothing will happen, so I told him I will come. Everybody is tired with Yahya Jammeh; I believe he will go.”
The manager in the hotel restaurant where Ms. Sakho works, Lamine Bojang, said that despite the uncertainty over Gambia’s future, the possibility of a war had never crossed his mind. He argued that Mr. Jammeh was just “testing the waters” and would give up at the last minute.
“Gambians are very peaceful people,” he said. “This is a small country. Imagine if we fight and a thousand people die. There will be no one to govern. Even Jammeh will not like to rule a hundred people.”
People stayed glued to radios for news, while some Barrow supporters prepared to take to the streets to celebrate his inauguration.
“I am going to celebrate our president and nobody can stop me. It is my right,” said Fatou Njie, a Barrow supporter.
But Mr. Njie, Gambia’s newly appointed communications minister, argued that Mr. Barrow’s inauguration in a foreign land was a violation of the Constitution and played down the decision by ECOWAS to deploy troops.
“I am never concerned about the proposed military intervention,” he said. “We are a sovereign nation and we should be allowed to find ways to solve our problems through a due process.”
The minister added that security forces have been installed in strategic parts of the country in readiness for “invasion by foreign forces.”