We develop and apply in this study a chemo-transport-mechanical model for simulating the external sulfate attacks in Portland (CEM I) cement pastes and mortars. Basically, this degradation consists in the simultaneous decalcification of the hydrated phases resulting from leaching processes, and the migration of sulfate ions within the material and its subsequent interactions with these phases. The sulfate uptake leads generally to ettringite precipitation mainly from monosulfate, which in turn may produce intense macroscopic expansions and cracking. In our approach, crystallization pressures arising from the restrained growth of monosulfate crystals due to the confinement of the surrounding C–S–H matrix are assumed to initiate the observed macroscopic expansions. A macroscopic strain tensor evaluated from the volume fraction of supplementary precipitated ettringite is further introduced in the mechanical behavior law for explicitly reproducing the macroscopic expansions. Analytical homogenization schemes are applied to estimate both mechanical and diffusive properties from the local volume fraction of solid phases. The numerical platform Alliances is then used for solving both reactive transport and mechanical coupled problems, and is applied to the simulation of laboratory tests consisting in prismatic mortar specimens immersed in solutions containing sodium sulfate and subjected to free expansions. Comparison of the numerical results with experimental ones in terms of phase assemblage profiles, evolutions of mass changes and expansions shows a correct agreement. Finally, the extension of the model towards cases of restrained displacement conditions is discussed and some modifications regarding the kinetics of ettringite precipitation are proposed for such situations.