Oxygen is obtained on a commercial scale through the liquefaction and distillation of ambient air at air separation plants. A secondpurification process may be necessary if ultra-high purity levels are required. High-purity oxygen can also be produced through the electrolysis of water.