When exposed to water and oxygen, pyrite can undergo chemical reactions that produce sulfuric acid, which can lower the pH of water bodies and soil, affecting aquatic life and plant growth. This process can also mobilize heavy metals, leading to contamination of groundwater and surface water. Managing the environmental impact of pyrite is a significant challenge in mining and environmental remediation.