This article mainly discusses the correlation between the election of the mayor and the relationship between the two sides of the Taiwan Strait. From the 2022 Taipei mayoral election, we use polls to understand the thoughts of Taiwanese people, their preferences for political parties, and the influence of the 2024 presidential election. The article consists of two parts: the basic background of the 2022 Taipei mayoral candidates, poll data, the current situation of Taipei City's relevant data, the analysis of population trends, the 1992 consensus, and the response to crisis events, affecting the attitudes of the mainland and the United States towards Taiwan , and whether it will affect Taiwan's election in the future. Through the discussion in this article, I hope to have a deeper understanding of the correlation between the election of the mayor and the relationship between the two sides of the Taiwan Strait.