Limestone is a sedimentary rock primarily composed of calcium carbonate (CaCO₃), often derived from the remains of marine organisms such as coral, shells, and algae.