The effects of 1 wt.% Ca or 1 wt.% Ca + 1 wt.% Ag addition and heat treatment on the corrosion behavior of Mg‐7Sn (wt.%) alloy in 3.5 wt.% NaCl solution were investigated by electrochemical measurements and immersion tests. The alloys were characterized by optical microscope (OM), X‐ray diffraction (XRD), scanning electron microscopy (SEM), transmission electron microscopy (TEM), and X‐ray photoelectron spectroscopy (XPS). It was found that all alloys were corroded by pitting corrosion and grain boundary corrosion and further corroded with time going. Loose layers of compounds, including Mg (OH)2, MgO, SnO2, and other compounds containing Ca and Ag elements, were calibrated on the surface of corroded Mg‐7Sn‐1Ca‐1Ag alloy. The Ca addition improved the corrosion resistance of Mg‐7Sn alloy due to the formation of relatively stable compounds containing calcium element and grains refinement. Furthermore, the solid solutioned alloys obtained a superior corrosion resistance due to the dissolve of eutectic Mg2Sn phase and homogenization treatment. However, the aging treatment is slightly detrimental to the corrosion resistance of Mg‐7Sn alloys with the formation of Mg2Sn precipitates. In conclusion, the aged Mg‐7Sn‐1Ca‐1Ag alloy exhibited a better corrosion resistance and a noticeable micro‐hardness property compared with those of as‐cast Mg‐7Sn alloy. And this study provides an important idea for the research on the comprehensive properties of Mg‐Sn alloys.