Is Coal a rock or mineral

Coal is considered neither a rock nor a mineral. It is a combustible black or brownish-black sedimentary rock that forms from the remains of plants and trees that lived and died millions of years ago. Coal is primarily composed of carbon along with various other elements such as hydrogen, sulfur, oxygen, and nitrogen. While it is a type of rock, it is more accurately classified as a fossil fuel.