Limestone a sedimentary rock, largely calcium carbonate, usually also containing significant amounts of magnesium carbonate.