Garbage is burned just like coal would be, which heats water to make steam that turn a turbine to produce electricity. If you hear things hot enough the ‘toxic’ stuff burns or breaks down, what comes out the chimney is mostly CO2 and water vapor. Ash then goes to a dump.
The downside is that all the carbon is now in the atmosphere, and some bad stuff does come out the chimney.
Latest Answers