In theory, the same volume of magnesium batteries can store nearly twice as much energy as lithium-ion batteries. However, previous studies have encountered a problem: traditional carbonate electrolytes will form a barrier on the magnesium surface due to chemical reactions, which will hinder the battery charging process. Magnesium ions can flow in the opposite direction through highly corrosive liquid electrolytes, but this also eliminates the possibility of high pressure magnesium batteries.