Partial results from Nigeria’s election give ex-military ruler Muhammadu Buhari a narrow lead over the incumbent, President Goodluck Jonathan.
With more than half of Nigeria’s 36 states declared, Gen Buhari’s All Progressives Congress (APC) is ahead by half a million votes.
A victory for Gen Buhari would make President Jonathan the first incumbent to lose an election in Nigeria.
Correspondents say it is likely the loser will allege foul play.
More than 800 people were killed in protests after Mr Jonathan beat Gen Buhari in the previous election.
Results so far:
Gen Buhari: 10,454,137 votes;
Passed 25% threshold in 16 states
Mr Jonathan: 9,953,432 votes;
Passed 25% threshold in 20 states
Results from 25 states + Abuja
Candidates needs 25% in 24 states for first-round victory
Gen Buhari’s lead was cut from two million votes, after Mr Jonathan gained a landslide in Rivers State, where there have been widespread reports of irregularities and a curfew imposed.
Electoral commission (Inec) chairman, Attahiru Jega, said the fact-finding team sent to the state found there were some voting irregularities with the poll but not enough “to warrant a cancellation of the election”.
However, many of the states still to declare are in the north, where Gen Buhari is seen as favourite.
Earlier, the announcement of results was disrupted when an agent of Mr Jonathan’s People’s Democratic Party (PDP) launched a tirade against Mr Jega in Abuja.
“We have lost confidence in what you’re doing, we don’t believe in you any more,” Elder Orubebe said.
Rejecting the allegation, Mr Jega replied: “Let us be careful about what we say or do and let us not dispute a process that has begun peacefully.”
Gen Buhari has won the two biggest states, Lagos in the south and Kano in the north, while Mr Jonathan won a huge majority in his home state of Bayelsa, as well as Rivers.
The candidate with the most votes will only avoid a run-off if they gain at least 25% of the votes in two-thirds of Nigeria’s 36 states.
At the scene: Will Ross, BBC News, Abuja
In public the message from both sides is the same – we have won. But behind closed doors there are long faces in the PDP camp.
It looks like Muhammadu Buhari’s lead may well prove too wide to be bridged.
Unofficial results from most of the remaining states – published by national newspapers against electoral law – show that even if there are eyebrow-raising turnouts from Mr Jonathan’s strongholds in the Niger Delta, he is still in trouble.
But this is Nigeria and predictions are dangerous.
The biggest surprise would be if the result is not disputed by the losing side.
During the vote, the card readers experienced some technical glitches, but they could prove to be decisive in ensuring the numbers could not be cooked and the views of Nigerians could not be ignored.
International observers have broadly praised the conduct of the vote but there has been some concern over possible efforts to rig the outcome during the count.
The US and UK have expressed their concerns over potential “political interference” during the count.
A spokesman from Inec dismissed these fears, saying that “there is absolutely no basis” to talk of meddling.
Authorities in Rivers State announced a curfew on Monday night after protests over alleged vote rigging.
Earlier, police in the state used teargas against female opposition protesters who were attempting to lodge complaints with election officials.
Voting spilled into Sunday in some parts of Nigeria after problems were encountered with new electronic card readers, which were introduced to prevent fraud.
President Jonathan, whose PDP has dominated Nigerian politics since 1999, was among those whose registration to vote was delayed by the technology.
Mr Jega said only a fraction of the 150,000 card readers being used nationwide had failed.
Nigeria at a glance:
- Two main presidential candidates: Muhammadu Buhari, All Progressives Congress (APC), Muslim northerner, ex-military ruler, fourth presidential bid; and Goodluck Jonathan, People’s Democratic Party (PDP), Christian southerner, the incumbent
- Years of military rule ended in 1999 and the PDP has been in power ever since
- Nigeria is Africa’s largest economy and leading oil producer
- With a population of more than 170 million, it is also Africa’s most populous nation
The UN gave an upbeat assessment of the vote on Sunday, with Secretary General Ban Ki-moon praising the “determination and resilience” of voters, despite the reports of attacks by Boko Haram militants and others.
The National Human Rights Commission said 50 people were killed during the balloting.
The presidential and parliamentary elections had been delayed by six weeks because of the insurgency by Boko Haram.
The Islamists attacked polling stations in north-eastern states, with a curfew declared in Bauchi State after fighting between the security forces and the group.
As well as a president, voters are electing members of the house of representatives and the senate.