Coal is a sedimentary rock formed from accumulated plant material buried in swamps and compacted over millions of years. As heat and pressure increase, the carbon content rises, producing lignite, bituminous coal, and eventually anthracite. Coal is organic in origin, unlike igneous or metamorphic rocks. Its black color, lightweight feel, and ability to burn help distinguish it from other rock types.