how does coal mines and fatories affect the environment?

What are the waste products from mines and factories? What happens to the products, do they end up in the enviroment?