Selenite is a form of gypsum. Gypsum is an evaporite mineral and occurs in deposits with halite and anhydrite. With its low solubility it is the first mineral to precipitate out of sea water.