Defeated in his bid for re-election in the 28 March poll, Nigeria's Goodluck Jonathan had a rapid and highly improbable rise to power,

Until November 2009, he was serving out his time as a low-key deputy from the south of the country to a low-key president from the north.

But then, President Umaru Yar'Adua was taken to hospital in Saudi Arabia and was not seen again in public until he died on 5 May 2010.

Step forward, Mr Jonathan. After months of political wrangling, Nigeria's elite finally accepted him as acting leader in February 2010 when the ailing president returned home, but remained too ill to govern.

Barely 12 hours after Mr Yar'Adua's death, Mr Jonathan was sworn in as the new president and commander-in-chief of the armed forces of Africa's most populous nation - one of its most fractious democracies.

Not bad for a man who had never been elected to major public office in his own right.

'Super pastors'

He defied the governing People's Democratic Party's (PDP) tradition of alternating presidential power between north and south after two terms of office by winning the party's primaries.

In 2011, he won his first election - for president - despite opposition claims of fraud.

Goodluck Jonathan in focus:

Image copyrightAFPImage caption
A supporter wears a mask of the Nigerian leader

Has a penchant for fedora hats

Regular church-goer

Middle name, Ebele, means "God's wish"

Fond of saying he never had shoes as a child because of poverty

Told journalists in 2012 that he would not declare his assets because he did not "give a damn about it, even if you criticise me from heaven"

Journalist Ben Shemang is among the many Nigerians who believe Mr Jonathan's name had given him an advantage.

He told the BBC that Mr Jonathan was doubly lucky as his other given name was equally propitious - Ebele, which means "God's wish".

"That tells you that it was the wish of the parents for him to be successful," he said.

Amnesty

But Mr Jonathan's luck finally ran out when he lost the 28 March presidential election to Gen Muhammadu Buhari.

This has made him the first sitting president to be defeated in a Nigerian election.

Image copyrightAFPImage caption
An insurgency waged by militant Islamists has caused havoc in the north

Image copyrightAFPImage caption
Boko Haram has vowed to create an Islamic state in Nigeria

Some analysts say this is not surprising. Mr Jonathan suffered a major blow in December 2013 when Mr Obasanjo, his former backer, called on him to step down.

In a widely circulated 18-page letter, Mr Obasanjo accused him of failing to deal with the many problems facing Nigeria - including an Islamist insurgency in the north-east, corruption, piracy, kidnapping and oil theft.

A powerful faction of PDP members, including state governors and MPs, also defected to the newly formed opposition All Progressives Congress (APC).

This paved the way for Mr Jonathan's defeat, as they rallied support for Gen Buhari.

But Mr Jonathan called him to congratulate him, confounding critics who thought he would not give up power.