Shells are made from calcium carbonate
When marine animals with shells die the shells fall to the bottom of the sea. Over time the shells get compressed and form limestone.