click on picture to enlarge. Photograph by H.B. Stonehouse
Limestone is composed of calcium carbonate (lime). It may be deposited in shallow warm seas, as is currently happening around the Bahamas. Other limestone beds contain fossils. Fossilized organisms took calcium carbonate from the water to build shells or homes for themselves.