Limestones are mostly made of calcium carbonate. This comes originally from the bodies of many small organisms which build their shells or framework out of CaCO crystals. An example is the type of protist called coccolithophores.