The major method for producing sodium hydroxide is through the electrolysis of brine, which produces chloride gas, hydrogen gas, and sodium hydroxide. There are three main processes for this: the mercury cell process, the diaphragm cell process, and the membrane cell process. The membrane cell process is now most commonly used as it has the lowest energy requirement and produces very pure sodium hydroxide with no hazardous waste.