Aiming at the problem of oily sludge polluting the environment produced in the process of heavy oil pro-duction,an oily sludge coagulant was developed with baked clay and hydraulic lime as the main raw materials,and an oily sludge adjusting and blocking agent that can be coagulated and solidified in the oil layer was formulated with oily sludge coagulant and oily sludge as the main components,so that it can achieve the purpose of harmlessness of oily sludge and utilization of resources.The factors affecting the blocking performance of the oily sludge adjusting and blocking agent were analyzed and optimized,and the adjusting and blocking performances were evaluated through XRD detection and compressive strength.The study shows that the adjusting and blocking agent has the ad-vantages of long gel time,good construction safety,pumpability and appropriate structural strength;when the mass fraction of oily sludge coagulant is above 17%,the core blocking rate is above 98%,and the breakthrough pressure is above 20 MPa,which has high blocking strength;at the same time,the adjusting and blocking agent is also a new technology of resourceful use of solid waste,which is in line with the national policy of circular economy and green development.Oily sludge coagulant technology effectively solves the environmental pollution problem caused by oily sludge discharge,providing a new means for comprehensive oilfield management and reducing production costs.