With cameras rolling, Yahya Jammeh called the winner, opposition coalition leader Adama Barrow, on a mobile phone to praise the election and vow not to contest the result.
"Allah is telling me my time is up and I hand over graciously with gratitude toward the Gambian people and gratitude toward you," Jammeh said last night.
It was a stunning turn of events in a country where critics have long alleged votes are rigged and opponents silenced and jailed. Just five years ago, Jammeh said that he could stay in power for a billion years.
Many Gambians stayed up all night listening to the radio and tallying results as they were read out constituency by constituency.
More From This Section
Once the results were announced, some tore down posters of Jammeh and celebrated in the streets as the military stood by. Men in pickup trucks rode through the streets of Banjul screaming "Freedom! Freedom! Freedom!"
For the tens of thousands watching abroad from political exile, it was a day they thought might never come.
"We have freedom at last! And there will be an economic boom, and people jailed can be freed, and people exiled abroad will come back home to their families," said Aminata Jawara, a 23-year-old lab technician.
Nevertheless, Jammeh had projected confidence, saying his victory was all but assured by God and predicting "the biggest landslide in the history of the country" after he voted on Thursday.
"We are happy to be free," said Omar Amadou Jallow, an opposition leader for the People's Progressive Party, which joined the coalition that backed Barrow. "We are able to free the Gambian people from the clutches of dictatorship, and we are now going to make sure Gambia becomes a bastion of peace and coalition. Our foundation will be based on national reconciliation."
Human rights groups have accused Jammeh of ordering the deaths of countless political opponents as well as targeting journalists and gays and lesbians.