Acid precipitation is caused primarily by the mixing of water vapor and sulfur and nitrogen oxides produced by the combustion of fossil fuels.