Coal is collected through surface or underground mining methods. Surface mining uses large machines to remove topsoil and rock layers to access coal deposits underneath. Underground mining involves using elevators to access deep tunnels where miners cut coal. Coal forms over hundreds of millions of years from decaying plant matter and is a non-renewable fossil fuel. Communities depend on the coal industry as it provides around 40% of the world's electricity and is used to produce many goods, but it also harms the environment by releasing pollutants like carbon dioxide, sulfur dioxide, and nitrogen dioxide which contribute to issues like global warming and acid rain. Better management of the coal industry could involve using pollution control devices and reducing transportation and other resource usage to