Sulfur dioxide (SO2) and nitrogen dioxide (NO2), primarily from burning fossil fuels, react with water, oxygen, and other chemicals in the atmosphere to form sulfuric acid (H2SO4) and nitric acid (HNO3). These acids dissolve in rainwater, making it acidic.