Environmental impact of mining can occur at local, regional, and global scales through direct and indirect mining practices. Mining can cause erosion, sinkholes, loss of biodiversity, or the contamination of soil, groundwater, and surface water by chemicals emitted from mining processes. These processes also affect the atmosphere through carbon emissions which contributes to climate change.
Some mining methods (lithium mining, phosphate mining, coal mining, mountaintop removal mining, and sand mining) may have such significant environmental and public health effects that mining companies in some countries are required to follow strict environmental and rehabilitation codes to ensure that the mined area returns to its original state. Mining can provide various advantages to societies, yet it can also spark conflicts, particularly regarding land use both above and below the surface.