A former Indonesian education minister won the race for Jakarta governor on Wednesday after a polarizing campaign that cast a shadow over Indonesia's reputation for practicing a tolerant form of Islam. Anies Baswedan won with 58 percent of the votes versus 42 percent for Basuki Tjahaja Purnama, known by his Chinese nickname as "Ahok," based on 100 percent of the votes in an unofficial "quick count" by Indikator Politik. Other pollsters showed similar results with 99 percent counted. The national elections commission will announce official results in early May. The turbulent campaign featured mass rallies led by a hardline movement, which has strengthened in recent years in a country long dominated by a moderate form of Islam. More than 80 percent of Indonesia's population professes Islam. "Going forward, the politics of religion is going to be a potent force," said Keith Loveard, an analyst at Jakarta-based Concord Consulting and an author of books about Indonesian politics. Baswedan's huge margin of victory was surprising since opinion polls in the run-up to the election had pointed to a dead-heat. Purnama won the first round of voting for governor in February in a three-way race. Indonesian social media users likened the election outcome to the shock results of the US presidential vote and the Brexit vote of last year. One Twitter user, @fuadhn, said Indonesians "can feel what US and British citizens feel now. Welcome populism..." The election came on the eve of a visit by US Vice President Mike Pence, as the Trump administration seeks to engage the world's fourth-largest nation and largest Muslim-majority country as an emerging regional power. Pence is scheduled on Thursday to visit the biggest mosque in Southeast Asia, Jakarta's Istiqlal Mosque. The Jakarta election will be seen as a barometer for the 2019 presidential election, given the city's outsized importance as both the nation's capital and commercial center. Purnama is backed by President Joko Widodo's ruling party. Baswedan is supported by a retired general, Prabowo Subianto, who narrowly lost to Widodo in a 2014 presidential vote and is expected to challenge him again. Police said 15 people were detained following reports of disturbances at several polling stations in the city of 10 million people, after what the Jakarta Post this week dubbed "the dirtiest, most polarizing and most divisive" election campaign the nation had ever seen. — Reuters