Limestone is a sedimentary rock composed largely of the minerals calcite and aragonite, which are different crystal forms of calcium carbonate (CaCO3). Like most other sedimentary rocks, limestone is composed of grains; however, most grains in limestone are skeletal fragments of marine organisms such as coral or foraminifera. Other carbonate grains comprising limestones are ooids, peloids, intraclasts, and extraclasts. These organisms secrete shells made of aragonite or calcite, and leave these shells behind after the organisms die.