This study aimed to analyze the main factors influencing air quality in Tangshan during COVID-19, covering three different periods: the COVID-19 period, the Level I response period, and the Spring Festival period. Comparative analysis and the difference-in-differences (DID) method were used to explore differences in air quality between different stages of the epidemic and different years. During the COVID-19 period, the air quality index (AQI) and the concentrations of six conventional air pollutants (PM2.5, PM10, SO2, NO2, CO, and O3-8h) decreased significantly compared to 2017–2019. For the Level I response period, the reduction in AQI caused by COVID-19 control measures were 29.07%, 31.43%, and 20.04% in February, March, and April of 2020, respectively. During the Spring Festival, the concentrations of the six pollutants were significantly higher than those in 2019 and 2021, which may be related to heavy pollution events caused by unfavorable meteorological conditions and regional transport. As for the further improvement in air quality, it is necessary to take strict measures to prevent and control air pollution while paying attention to meteorological factors.