Nigeria’s president was declared the clear winner of a second term in Africa’s largest democracy early Wednesday, after a campaign in which he urged voters to give him another chance to tackle corruption, widespread insecurity and an economy limping back from recession.

While many frustrated Nigerians had said they wanted to give someone new a try, President Muhammadu Buhari , a former military dictator, profited from his upright reputation in an oil-rich nation weary of politicians enriching themselves instead of the people.

The electoral commission said in its official declaration before dawn that Buhari received 15.1 million votes, or 55 percent. Challenger Atiku Abubakar received 11.2 million, or 41 percent. The average national turnout was 35.6 percent, continuing a downward trend.

Supporters of Incumbent President Muhammadu Buhari dance to Lady Gaga songs anticipating a win as they wait for the results to be officially announced in Abuja, Nigeria, Tuesday, Feb. (AP Photo/Jerome Delay)
Supporters of Incumbent President Muhammadu Buhari dance to Lady Gaga songs anticipating a win as they wait for the results to be officially announced in Abuja, Nigeria, Tuesday, Feb. (AP Photo/Jerome Delay)
Supporters of Incumbent President Muhammadu Buhari take selfies at Buhari's campaign headquarters as they wait for the results to be officially announced in Abuja, Nigeria, Tuesday, Feb. (AP Photo/Jerome Delay)
Supporters of Incumbent President Muhammadu Buhari take selfies at Buhari’s campaign headquarters as they wait for the results to be officially announced in Abuja, Nigeria, Tuesday, Feb. (AP Photo/Jerome Delay)
Supporters of Incumbent President Muhammadu Buhari party anticipating a win as they wait for the results to be officially announced in Abuja, Nigeria, Tuesday, Feb. (AP Photo/Jerome Delay)
Supporters of Incumbent President Muhammadu Buhari party anticipating a win as they wait for the results to be officially announced in Abuja, Nigeria, Tuesday, Feb. (AP Photo/Jerome Delay)
Ruling party workers count results at Incumbent President Muhammadu Buhari's campaign headquarters monitor official results being released in Abuja, Nigeria, Tuesday Feb. (AP Photo/Jerome Delay)
Ruling party workers count results at Incumbent President Muhammadu Buhari’s campaign headquarters monitor official results being released in Abuja, Nigeria, Tuesday Feb. (AP Photo/Jerome Delay)
Supporters of Incumbent President Muhammadu Buhari party anticipating a win as they wait for the results to be officially announced in Abuja, Nigeria, Tuesday, Feb. (AP Photo/Jerome Delay)
Supporters of Incumbent President Muhammadu Buhari party anticipating a win as they wait for the results to be officially announced in Abuja, Nigeria, Tuesday, Feb. (AP Photo/Jerome Delay)
A man takes a call on his cellphone as he stands between two billboards showing Nigeria's President Muhammadu Buhari and other party officials, in Kano, northern Nigeria Tuesday, Feb. (AP Photo/Ben Curtis)
A man takes a call on his cellphone as he stands between two billboards showing Nigeria’s President Muhammadu Buhari and other party officials, in Kano, northern Nigeria Tuesday, Feb. (AP Photo/Ben Curtis)
FILE - In this Saturday, Feb. 23, 2019 file photo, Nigeria's President Muhammadu Buhari speaks to the media after casting his vote in his hometown of Daura, in northern Nigeria. (AP Photo/Ben Curtis, File)
FILE – In this Saturday, Feb. 23, 2019 file photo, Nigeria’s President Muhammadu Buhari speaks to the media after casting his vote in his hometown of Daura, in northern Nigeria. (AP Photo/Ben Curtis, File)
Supporters of Incumbent President Muhammadu Buhari dance to Lady Gaga songs anticipating a win as they wait for the results to be officially announced in Abuja, Nigeria, Tuesday, Feb. (AP Photo/Jerome Delay)
Supporters of Incumbent President Muhammadu Buhari dance to Lady Gaga songs anticipating a win as they wait for the results to be officially announced in Abuja, Nigeria, Tuesday, Feb. (AP Photo/Jerome Delay)
Ruling party workers count results at Incumbent President Muhammadu Buhari's campaign headquarters monitor official results being released in Abuja, Nigeria, Tuesday Feb. (AP Photo/Jerome Delay)
Ruling party workers count results at Incumbent President Muhammadu Buhari’s campaign headquarters monitor official results being released in Abuja, Nigeria, Tuesday Feb. (AP Photo/Jerome Delay)
Ruling party workers count results at Incumbent President Muhammadu Buhari's campaign headquarters in Abuja, Nigeria, Tuesday Feb. (AP Photo/Jerome Delay)
Ruling party workers count results at Incumbent President Muhammadu Buhari’s campaign headquarters in Abuja, Nigeria, Tuesday Feb. (AP Photo/Jerome Delay)