Nitrous acid (HONO) is a key precursor of the hydroxyl radical (•OH), playing an important role in atmospheric oxidation capacity. However, unknown sources of HONO (P unknown ) are frequently reported and the potential sources are controversial. Here, we explored P unknown during COVID-19 in different seasons and epidemic control phases in Shanghai by eXtreme Gradient Boosting (XGBoost) and Shapley Additive Explanations (SHAP) for the first time. They demonstrated that the decrease of anthropogenic activity would inhibit secondary formation of HONO, as epidemic control policies turned strict. The explainable machine learning revealed that nitrogen dioxide (NO 2 ) had significant impacts on the P unknown during spring 2020 (P1), where P unknown could be fully explained by including light-induced heterogeneous conversion of NO 2 on ground, building, and aerosol surfaces. With the untightening of epidemic control in spring 2021 (P3), the HONO budget came to balance after further addition of the photolysis of particulate nitrate (NO 3 − ) and soil HONO emission. As for P2 (summer), P unknown decreased by 54% with all new sources added. These results provide new insights into HONO chemistry in response to reduced anthropogenic emissions, improving the predictions of atmospheric oxidation capacity.