Coal is a black or brownish-black sedimentary rock composed primarily of carbon, along with various other elements and minerals.