Coal is a combustible, sedimentary rock with a brownish-black or even entirely black color. Coal is primarily composed of carbon, with smaller, varying quantities of hydrogen, nitrogen, sulfur and oxygen. It is classified into different types, based on its composition and time of formation.