There are three main types of sedimentary rocks: clastic or terrigenous rocks which are formed from weathered and eroded fragments and can be deposited in continental, shoreline, or marine environments; biogenic rocks which are usually carbonate sediments classified by mineral composition and formed through biological processes in limited depositional locations; and chemical rocks which form from precipitation of salts from solution in both marine and non-marine environments, such as gypsum and halite.