Coal is associated with organically-formed sedimentary rocks. Coal is formed from the remains of plants that have been buried for millions of years.