A scientifically accurate detection method of efflorescence on cement-based decorative mortars is presented in this paper after five different efflorescent detection tests. According to this method, the influence of different content of diatomite on prevention of efflorescence on decorative mortars was mainly investigated. Water absorption and basic mechanical properties of the decorative mortars with addition of diatomite were also explored. Subsequently, thermogravimetric and nitrogen adsorption method were applied to explain the mechanism of restraining efflorescence. It was found that appropriate amount of diatomite could effectively inhibit the efflorescence of decorative mortars.