The results on Saturday give President Lai Ching-te's administration a modest political boost, figures from the Central Election Commission showed.
In the previous elections in 2022, the DPP had won just five local governments.
Taiwan's largest opposition party, the Chinese National Party, or Kuomintang, secured 11 local governments, according to the commission.
One local government was won by an independent candidate.
The Central Election Commission is set to officially announce the list of elected candidates on December 4.
In the most closely watched contest in Taipei, DPP challenger Puma Shen failed to unseat incumbent KMT Mayor Chiang Wan-an, dashing the ruling party's hopes of regaining control of the capital for the first time since 1998.
Chiang thanked all Taipei residents, regardless of how they had voted.
"I am grateful to the great people of Taipei for recognising the city government's efforts over the past four years through their votes," he told cheering supporters.
"Whoever wins, it is a victory for Taiwan's democracy," Shen told disappointed supporters at his campaign headquarters, adding that the Taipei voters' decision must be respected.
Shen's creative, carnival-like campaign events boosted public engagement ahead of the vote.
Michael Hsu, a 33-year-old surgeon and former centrist, told dpa that the campaign had deepened his awareness of Taiwan's defence resilience, and vowed to continue supporting civilian defence efforts with his medical expertise.
"The more united we are, the more our adversaries fear us," Hsu said.
Taiwan has been self-governed since 1949, although China claims the island as part of its territory.
Taiwanese officials have urged the public to remain vigilant against Chinese interference and disinformation, particularly false claims circulating on social media.
Beijing sanctioned Shen in 2024 for allegedly promoting Taiwan's independence, and Chongqing police further issued an arrest warrant in October 2025 over alleged "independence activities".
Undeterred, Shen addressed Germany's parliament in November 2025, speaking about disinformation by authoritarian states.
Taiwan's next presidential and Legislative Yuan elections are scheduled for January 2028.
Hung-jen Wang, a political scientist at National Cheng Kung University, told dpa that the modest gains in the local political map could help the DPP rebuild its grassroots political support.
"As legislative elections rely heavily on local mobilisation, the results could also reshape the party's starting position for the 2028 legislative elections," Wang said. The DPP lost its legislative majority in 2024.
On Saturday, voters also backed a referendum calling for an end to Taiwan's nuclear-free policy and a return to nuclear power, amid rising energy demand from the artificial intelligence and semiconductor industries.