With the development of economy,people produce more and more waste water.In order to achieve environmental protection and sustainable urban development,through the application of automation,promote the derivation of new wastewater treatment mechanisms and management processes.By using PLC,the whole process of sewage treatment and discharge can be controlled accurately,so that the sewage discharge can meet the environmental protection standard,it provides an important guarantee for the efficient and reliable operation of equipment,effectively reduces the cost of system operation and maintenance,and realizes the transformation of sewage treatment automation and centralization,this paper designs the sewage treatment system based on Plc.the system is highly integrated and stable,which provides an important guarantee for the automatic control of sewage treatment.