Taiwan's main opposition party retained the Taipei mayoralty in Saturday's local elections, while suffering substantial setbacks elsewhere. Kuomintang candidate Chiang Wan-an secured nearly 54% of the vote in the capital, defeating Puma Shen of the governing Democratic Progressive Party in a closely watched contest.

The KMT favours closer relations with China, which claims Taiwan as its territory. Although the local results will not change Taiwan's policy towards Beijing, they offer an indication of political support before the presidential election scheduled for early 2028. President Lai Ching-te of the DPP is widely expected to seek another term.

Shen, a former civil defence activist sanctioned by Beijing, built a campaign around social media and local concerns such as affordable housing and public transport. Winning Taipei would have marked a major breakthrough for the DPP, which has been out of the mayor's office for almost three decades. Despite conceding, Shen described the wider outcome as a democratic victory, pointing to DPP gains in traditional KMT territory.

An emotional Chiang told supporters that Taipei voters had endorsed his administration's performance and wanted stability, prosperity and practical answers to their problems. His winning share nevertheless fell considerably from the more than 67% he received four years earlier. One supporter told BBC Chinese that re-election would allow him to continue the policies of his first term.

The campaign unfolded amid sustained military pressure from China, which regularly sends fighter jets and warships around Taiwan. Beijing had portrayed Shen as a threat to stability in the Taiwan Strait. BBC Verify also found repeated use of artificial intelligence videos spreading false claims about Shen and Lai, including fabricated footage depicting Shen taking drugs and videos ridiculing politicians by showing them in children's clothing.

China's Communist Party refuses to engage with the DPP, regarding it as separatist. After the election, China's Taiwan Affairs Office said political changes in Taiwan would not prevent eventual reunification. Taiwan's Mainland Affairs Council responded by urging Beijing to deal with the island's democratically elected government without preconditions and on terms of equal dignity.

Among the KMT's setbacks was its defeat in Taichung, a central city where outgoing mayor Lu Shiow-yen had completed the maximum eight years in office. Lu is considered a leading contender for the party's presidential nomination. International Crisis Group analyst William Yang said the failure to secure a KMT successor would damage her nomination prospects and deepen internal party tensions.

Yang said Beijing had avoided the outcome it most feared in Taipei, a DPP administration led by Shen. However, he said China would need to watch the KMT's internal power struggle in the coming months before deciding whether to adjust its approach to the 2028 presidential contest.

The results also presented difficulties for the governing party. Lev Nachman, an associate professor at National Taiwan University who studies Taiwanese politics, said the DPP's failure to win Taipei weakened momentum for Lai's expected re-election campaign. His assessment was that the outcome left all sides somewhat disappointed.