In what was Nigeria's most competitive election in history, opposition candidate Muhammadu Buhari has unseated incumbent president Goodluck Jonathan.
This is the first time in Nigeria's history that there's been a peaceful, democratic handover of power. But who is the man who will take over the largest economy and most populous country on the African continent?
The short answer: a former leader of Nigeria who previously took power through a coup, was ousted in yet another coup, and has since tried and failed repeatedly to return to power.
Back in January 1984, Major General Muhammadu Buhari overthrew Nigeria's first democratically elected government. He stayed in power for two years and his record is pretty mixed.
On the other hand, Buhari's reign is also linked to human rights violations.
Buhari issued several decrees that granted the government wide-ranging powers to supress dissent. Protests were banned, journalists could be arrested even for writing factual stories that were critical of the government, and the state security and the chief of staff were granted the ability to detain individuals without warrant for months at a time.
He also launched what was called the "War Against Indiscipline."
"Cheating on an examination, for example, can now bring a student 21 years in prison," the New York Times reported at the time. "Counterfeiting, arson, selling oil illegally, trafficking in or using 'cocaine or any such similar drug' and tampering with telephone cables all now carry the death penalty."