Lai Ching-te, the presidential candidate for Taiwan's ruling party, took an initial lead in early vote counting on Saturday, potentially setting him on course to win an election that China had framed as a choice between war and peace.
Lai, Taiwan's vice president, reached more than three million votes by early evening after polls closed at 4pm (0800 GMT) on Saturday, according to a running tally by Taiwanese media, putting him comfortably ahead of his two rivals.
No party has conceded or claimed victory.
Lai's Democratic Progressive Party, which champions Taiwan's separate identity and rejects China's territorial claims, is seeking a third term, unprecedented under Taiwan's current electoral system.
Lai is facing two opponents - Hou Yu-ih of Taiwan's largest opposition party the Kuomintang, and former Taipei Mayor Ko Wen-je of the small Taiwan People's Party, founded in 2019.
In the running vote tally reported by Taiwan media, Hou was in second place with some 2.7 million votes, while Ko had more than two million.
Speaking to reporters in the southern city of Tainan before voting, Lai encouraged people to cast their ballots.
"Every vote is valued, as this is Taiwan's hard-earned democracy," he said in brief remarks.
In the run-up to the election, China repeatedly denounced Lai as a dangerous separatist and rebuffed his repeated calls for talks.
Lai says he is committed to preserving peace across the Taiwan Strait and boosting the island's defences.
Taiwan's defence ministry said on Saturday it had again spotted Chinese balloons crossing the sensitive strait, with one flying over Taiwan itself.
The ministry has denounced the spate of balloons reported in the past month as psychological warfare and a threat to aviation safety.
Hou wants to restart engagement beginning with people-to-people exchanges and has, like China, accused Lai of supporting Taiwan's formal independence.
Lai says Hou is pro-Beijing, which Hou rejects.
Ko has won a passionate support base, especially among young voters, for focusing on bread-and-butter issues such as the high cost of housing.
He also wants to re-engage China but insists that cannot come at the expense of protecting Taiwan's democracy and way of life.
The parliamentary elections are equally important, especially if no party wins a majority, potentially hindering the new president's ability to pass legislation and spending, especially for defence.
President Tsai Ing-wen is constitutionally barred from standing again after two terms in office.