The metal is now obtained mainly by electrolysis of magnesium salts obtained from brine .
The metal is now mainly obtained by electrolysis of magnesium salts obtained from brine .