A sedimentary rock that consists mainly of calcium carbonate. Limestones formed in warm, shallow seas during the Carboniferous, perhaps in environments rather similar to those in the present-day Persian Gulf.