1997–98 Taiwanese local elections

Local elections of Taiwan were held in 1997 and 1998 to elect magistrates of counties and mayors of cities on 29 November 1997, and mayors and councillors of special municipalities on 5 December 1998.

Opposition Democratic Progressive Party (DPP) won in the 1997 election, controlling majority of mayors/magistrates across the country and winning more popular votes than the ruling Kuomintang (KMT) for the first time. While the two polls were seen as confidence votes of President Lee Teng-hui, they marked the beginning of the historic peaceful transition of power which would occur in 2000.

Counties and cities
During the election rally, President Lee endorsed Kuomintang candidate Kente Chen in Taoyuan magisterial election. Lee, who is also chairman of the Kuomintang, claimed he has been a registered voter in Taoyuan for years instead of Taipei. It was later rebuked by Chen Shui-bian, mayor of Taipei, that he was still registered as Taipei resident. Chen further slammed Lee as "senile" for not knowing his residence, suggesting Lee should get an elderly chain so not to get lost. Kuomintang seniors in response denounced Chen's comments.

The DPP successfully flipped in six counties/cities, including Keelung City, Hsinchu City, Taichung City, Taichung County, Tainan City, and Pingtung County, but defeated in Penghu County. Incumbent magistrate of Miaoli County from the KMT was defeated by independent candidate.

Turnout of the election is 65.92%, with 7,784,908 voting out of 11,809,277 registered electorates.

Special municipalities
Elections for mayors and councillors of special municipalities Taipei and Kaohsiung were held on 5 December 1998. The nail-biting election resulted in both incumbents defeated with a narrow margin, including an unexpected victory for the DPP in Kaohsiung.

Taipei
Chen Shui-bian of the DPP seek a second four-year term with a high popularity of 80%, while the KMT nominated Ma Ying-jeou, ex-Minister of Justice who earlier declined to run in the mayoral election. Ma eventually beat Chen by around 0.6% of votes. Analysts believed tactical voting by supporters of New Party contributed to the KMT's win, in addition to the discontent with Chen's aggressive policies.

Kaohsiung
Following the defeat in vice-presidential election, Frank Hsieh of the DPP started considering running in Kaohsiung mayoral election. In 1997, Chen Che-nan, Hsieh's party colleague decided not to run against Hsieh in the party primary for the Kaohsiung poll, reportedly after an intervention by Taipei Mayor Chen who later promoted him as secretary-general of Taipei Government.

On the other hand, incumbent Wu Den-yih from the KMT faced small-scale rebellion from local party branch after former Kaohsiung mayor Wang Yu-yun criticised Wu for being ungrateful. In the run-up of the election, an ex-secretary of Wu published a recording tape, claiming Wu had an affairs with a reporter. Despite found to be fake after the election, the incident nevertheless damaged Wu's popularity.

During the campaign, Wu attacked Hsieh for "inhumane" after he agreed to be defence attorney for the murderer of Pai Hsiao-yen, hoping to persuade his surrender. The personal attack was said to have further pushed for Hsieh's victory.