Acid rain is formed when sulfur dioxide (SO2) and nitrogen oxides (NOx) react with water, oxygen, and other chemicals in the atmosphere to form acidic compounds. These compounds then fall to the ground as rain, snow, fog, hail, or even dust. The primary acidic components are sulfuric acid (H2SO4), formed from SO2, and nitric acid (HNO3), formed from NOx.