Coal is a sedimentary rock. It is formed from plant matter that has been buried underground and subjected to heat and pressure over millions of years. Coal is a rock because it is made up of multiple minerals, including carbon, hydrogen, oxygen, nitrogen, and sulfur.