Coal contains high amounts of carbon, hydrogen, and other combustible materials. When coal is burned, these materials react with oxygen to produce heat, carbon dioxide, and water vapor. The heat produced by burning coal can be used to generate electricity, power industrial machinery, or provide warmth for homes and buildings.
So, while coal may appear like a rock, it is actually a combustible organic material that can be burned for energy.