Evaporites are sedimentary rocks that form when water evaporates from an aqueous solution, leaving behind mineral deposits. There are two types: marine evaporites, which form from ocean water, and non-marine evaporites, which form from inland bodies of water. Minerals precipitate from solution in reverse order of solubility as the water evaporates. Common evaporite minerals include halite, gypsum, and anhydrite. Evaporites are economically important as sources of minerals and because some formations can trap oil and gas deposits.