Gypsum is made up of oxygen, calcium, sulfur, and water, and its chemical formula is CaSO4·2H2O. Gypsum beds were formed due to the evaporation of water from the massive prehistoric sea basins. When water evaporates, the minerals present in it become concentrated, and crystallize.