Jakarta: Jakarta governor Joko Widodo took the lead in Indonesia's tightest and most divisive presidential election since the downfall of dictator Suharto on Wednesday, which has pitted him against ex-general Prabowo Subianto, pollsters said.
A series of "quick counts" -- unofficial tallies from polling agencies -- showed Widodo leading with around 53 percent of the vote against Prabowo's 47 percent.
After a bitterly fought campaign that saw long-time favourite Widodo's lead shrink dramatically, voters in the world's third-biggest democracy have faced a choice starkly different candidates.
A former furniture exporter from a humble background, Widodo, known by his nickname Jokowi, is the first serious presidential contender without links to the authoritarian past. Should he win, he is seen as likely to usher in a new style of leadership and consolidate democracy.
Prabowo, a former son-in-law of Suharto who has admitted ordering the abduction of democracy activists before the strongman's downfall in 1998, has won support with promises of firm leadership in a country where many yearn for a strong figurehead.
But critics fear he may shift Indonesia back towards authoritarian rule.
Widodo was mobbed by hundreds of journalists and supporters as he voted at a polling station near the Jakarta governor's residence in the centre of the capital.
"Today is the day Indonesians decide their future for the next five years," said the 53-year-old, who was wearing a traditional, patterned Indonesian shirt and was accompanied by his wife, wearing a Muslim headscarf.
Prabowo was also greeted by an enthusiastic crowd as he voted at a polling station near his countryside house outside the capital, arriving in a jeep and escorted by two mounted policemen.
"I'm very optimistic, and God willing we will get support from people everywhere," said the 63-year-old after voting.
"My hope is that the election went well and smoothly, with no fraud and no intimidation."
Some 190 million voters are eligible to cast ballots across the sprawling archipelago of more than 17,000 islands that spans three time zones.
Polling stations closed across the country, from eastern Papua, to the main island of Java and jungle-clad Sumatra in the west, closed at 1:00 pm and no major disruptions to voting were reported.
Several months ago Widodo looked to be on a smooth course to lead the country. But, after a polarising campaign, his once-huge lead has shrunk.
The Jakarta governor was targeted by smears, including a claim that he is an ethnic Chinese Christian and not a Muslim, a deeply damaging charge in the world's most populous Muslim-majority country.
He vehemently denied the claim.
Analysts have said the large number of undecided voters has made the race hard to call. Official results are not expected for about two weeks.
Whoever wins will be the country's second directly elected president after Susilo Bambang Yudhoyono, who steps down in October after a decade of stable but often indecisive rule.
It will be a delicate transition. Growth is slowing in Southeast Asia's top economy, corruption is rampant, millions remain mired in poverty, and fears are mounting that Islamic radicals returning from Middle East conflicts could revive militant networks.
Jokowi's common touch
Widodo shot to national prominence when he was elected Jakarta governor in 2012, and quickly won legions of fans with his common touch and efforts to solve the capital's myriad problems.
He would make regular tours of the metropolis's sprawling slums in casual clothes and was often spotted at heavy metal concerts.
Prabowo, now a wealthy businessman, has played up his military background on the campaign trail, at a time when nostalgia is growing in some quarters for a return to the strong rule of the Suharto years.
Many have become disillusioned with the country's chaotic democracy, and hope a stronger leader can crack down on corruption in one of the world's most graft-ridden nations.
But Prabowo's comments about democracy have caused concern -- in one recent talk, he reportedly said that a Western-style political system, including direct elections, "doesn't suit" Indonesia.