alternative electrochemical energy storage systems are desirable to satisfy our growing demand for energy. Magnesiumion batteries (MIBs) offer many distinct advantages over their LIB and sodiumion battery (SIB) counterparts, including the earth-abundance of magnesium (Mg), the reversible dendrite-free deposition of Mg, [2,[6][7][8][9][10][11] the divalent nature of Mg ion and its smaller ionic radius compared to lithium (Li) and sodium (Na) ions, [12][13][14] and finally the fact that metallic Mg is less reactive and therefore safer than Li and Na metals. [8,[15][16][17][18][19] Despite these remarkable features, progress toward the development of practical MIBs has been impeded partly by the absence of suitable electrolytes that are compatible with Mg metal as the anode. [7,15,[20][21][22] Typically, common salts and organic solvent combinations like those used in LIBs and SIBs yield a Mg-ion-blocking film on the Mg metal anode. [7,[20][21][22][23][24] A promising way to circumvent this electrolyte issue involves the use of Mg alloy as the anode instead of pure Mg metal. Bismuth (Bi) and tin (Sn) are two promising candidate materials used as alloy-type MIB anodes, in which Mg is reversibly stored to make Mg 3 Bi 2 and Mg 2 Sn alloys, respectively. [1,[25][26][27] Unfortunately, state-of-the-art alloy-type MIB anodes can only be reversibly (dis)charged up to 200 cycles with acceptable capacity retention, [28] which is far below the 1000 cycles or more required for practical battery applications. In general, the capacity of MIB electrodes decays rapidly during cycling due to gradual material failure caused by massive volume expansions (up to 300%), and significant mechanical stresses, [27][28][29][30] which arise during solid-solid phase transformations. This occurs when a solid host MIB anode material (e.g., Bi, rhombohedral crystal structure) stores Mg to form a new solid phase material with a completely different crystal structure (e.g., β-Mg 3 Bi 2 , cubic crystal structure). [16,25] During the reverse process, Mg is removed from this new phase and transforms back to the initial host material. In doing so, the materials cracks and pulverizes into fragments, failing to restore its original shape and causing the battery to die within a few cycles. This issue represents a fundamental challenge in alloytype anodes. [31] In this work, we propose to overcome this challenge by taking advantage of the self-healing property of some Resources used in lithium-ion batteries are becoming more expensive due to their high demand, and the global cobalt market heavily depends on supplies from countries with high geopolitical risks. Alternative battery technologies including magnesium-ion batteries are therefore desirable. Progress toward practical magnesium-ion batteries are impeded by an absence of suitable anodes that can operate with conventional electrolyte solvents. Although alloy-type magnesium-ion battery anodes are compatible with common electrolyte solvents, they suffer from severe failure associated with huge volume ...