The COVID-19 pandemic has had a substantial impact on the lives of city residents and has reshaped working patterns, with a concomitant impact on traffic accidents. We correlated data from multiple sources to explore the impact of residents’ mobility and residents’ travel behavior on the spatiotemporal distribution characteristics of urban traffic accident hotspots and its internal mechanism under the impact of the pandemic and subsequent policy measures. The results showed that the pandemic and policy measures inhibited the mobility of residents, had a significant impact on working patterns, and changed the composition structure of the purpose of residents’ travel behavior, which substantially impacted the spatiotemporal distribution characteristics of urban traffic accident hotspots. The quantity of traffic accidents decreased significantly, and the spatial distribution characteristics of urban traffic accident hotspots changed substantially, with accident hotspots changing from the single-center spatial distribution before the pandemic to the multi-center spatial distribution during the pandemic; urban accident-prone areas changed from being mainly distributed in the central business district before the pandemic to being more widely distributed in public service areas during the pandemic. The results of this study may be helpful to better understand the spatiotemporal distribution characteristics of urban traffic accident hotspots and their intrinsic mechanism.