Irregular metallic growth at the anode during recharging of batteries can seriously influence the safety of batteries. To address this problem, we have attempted to design active anode materials with anion charge carriers and recently observed the formation and dissolution of an electrochemical film by triflate anions (CFSO) at the surface of magnesium in an ionic liquid (IL) electrolyte of Mg(CFSO), which represents a rare anode material. The effect of heterogeneous cations on film formation was examined in this work. In an IL that dissolves NaCFSO, sodium ions with a lower reduction potential than Mg/Mg would not be expected to assist film formation. However, to our surprise, we discovered that some sodium ions are involved in film formation. The sodium ions are believed to act as a cross-linking point for the formation of a film network, which resulted in fairly good reversibility for film formation. In a Ce(CFSO)-IL electrolyte, an electrochemically formed film free of Ce was obtained. The trivalent cerium cations were deactivated and transformed to an oxide on Mg metal. However, the reversibility of film formation in the Ce(CFSO) system did not meet the expected level. By coupling the film formation and dissolution behavior with a VO cathode, a rechargeable battery was fabricated with dual ion transport species of Na or Ce for the cathode and CFSO for the anode. The unique battery with NaCFSO is demonstrated to exhibit good discharge/charge performance with long-term cyclability.