A carbon-rich sedimentary rock formed from plant remains laid down as peat in swamps and then buried.