Sodium_Hydroxide solutions are produced by three different technologies
Mercury cells
Membrane cells
Diaphragm cells
Each of above processes utilizes sodium chloride (NaCl) salt as the primary raw material. Electrolytic splitting of salt results in products like chlorine and sodium ion (Na+). In turn Na+ will react with water in the mercury cell to form #Sodium_hydroxide and Hydrogen as by product.