A sedimentary rock composed primarily of carbon, formed from the remains of plant material that were compressed over time.