Rock salt may form from sediment; individual salt crystals forming in evaporating water act as sediment until they grow large enough to interlock into a solid rock. Minerals that crystallize from solution on the sides of a rock cavity, or as a stalactite in a cave, however, were never a sediment. Neither was limestone precipitated directly from seawater as a solid rock by corals.