So to produce current, magnesium loses two electrons to become magnesium ion, which then migrates across the electrolyte, accepts two electrons from the antimony, and then mixes with it to form an alloy.