The mud content in sand and gravel suppresses the fluidity and water reducer effect of concrete. To disclose the impacts of mud content on water reducer, this paper explores the microscale interaction between three kinds of mud (i.e. montmorillonite, kaolin and illite) and one water reducer (i.e. polycarboxylate superplasticizer), and tests the compressive strength and porosity of cement mortar with each type of mud. In addition, an anti-mud agent was prepared to enhance the dispersion effect of the water reducer. The results show that the compressive strength of hardened cement mortar is negatively correlated with mud content. The equilibrium zeta potential of two types of mud is higher than that of cement particles. The optimal reaction conditions for the anti-mud agent are weak alkalinity, reaction temperature of 70 °C, initiator dosage of 6 %, and reaction time of 5h. The research findings provide new insights into the development and application of water reducer with anti-mud agent.