Limestone is a sedimentary rock composed mainly of calcium carbonate, usually calcite, although it often has traces of magnesite and other carbonates. It can also contain small amounts of minerals such as clay, hematite, siderite, quartz, etc., which make up the color and degree of coherence of the rock.