Acid rain is caused by the release of sulfur dioxide (SO2) and nitrogen oxides (NOx) into the atmosphere, primarily from industrial and vehicular emissions.