> You might be familiar with this if you know about electrolysis. On Earth this process is commonly used in manufacturing, such as to produce aluminium. An electrical current is passed through a liquid form of aluminium oxide (commonly called alumina) via electrodes, to separate the aluminium from the oxygen. In this case, the oxygen is produced as a byproduct.
This is currently not the industrial reality.
Aluminum is typically produced via the Hall–Héroult process which involves a carbon source and emits CO2. (Alternative processes which only emit oxygen are possible, but presumably those are more expensive.)
https://en.wikipedia.org/wiki/Hall%E2%80%93H%C3%A9roult_proc...