Drug problem is one of the important factors affecting social stability and seriously threatening human life and health safety. The severe drug situation requires higher theoretical roots and practical level of community drug rehabilitation, and it is urgent to enhance the level of community drug rehabilitation services. Based on the relevant survey and research on community drug rehabilitation, this study takes anti-drug social work as the entry point, proposes specific paths for government purchase of social work services in community drug rehabilitation by studying the path model of anti-drug social work services, and tries to propose countermeasures in three aspects: law management mechanism, optimization of social work organizations, and professionalization of anti-drug social workers.