Coal is the main fossil fuel used to create electricity. It is burned. The resulting heat heats water which is turned into steam by the boiler. Steam released from the boiler powers an engine called a turbine, transforming heat energy from burning coal into mechanical energy that spins the turbine engine. The spinning turbine is used to power a generator, a machine that turns mechanical energy into electric energy.