Acid rain contains sulfuric and nitric acids, formed from pollutants like sulfur dioxide (SO2) and nitrogen oxides (NOx) reacting with water, oxygen, and other chemicals in the atmosphere. These acids react with materials like calcium carbonate found in marble and limestone, causing them to dissolve and erode.