Cement mortar is one of the commonly used building material . The effect of erosion is widely seen after a certain time. Based on the method of simulated experiment, Erosive ions at different concentrations, different age under uniaxial compressive strength of cement mortar and the influence of stress strain relationship are discussed. The results show that ion erosion was evident on cement mortar. Especially, certain solution concentration of SO42- can enhance the strength of cement mortar. This research has important reference value for the application of cement mortar in complex environment.