It forms in lagoons where ocean waters high in calcium and sulfate content can slowly evaporate and be regularly replenished with new sources of water. The result is the accumulation of large beds of sedimentary gypsum. Gypsum is commonly associated with rock salt and sulfur deposits.