In order to improve moral leadership, this paper analyzes the impact of local autonomy on leadership from the perspective of cultivating legal thinking. The corresponding data were obtained through the questionnaire, and the influencing factors of moral leadership were determined by response analysis. At the same time, with reference to the relevant domestic literature, several hypotheses are proposed. Whether there is a correlation between the relationship between moral leadership and legal thinking in local autonomy, whether legal thinking reflects public expectations, the influence of legal thinking on local autonomy strategies, and the relationship between public participation, legal thinking, ethical leadership and local autonomy strategies. The results show that the local autonomy strategy can improve moral leadership, and legal thinking can break through the inertial thinking mode and improve moral leadership, with an increase of 10%. In addition, public participation in society can promote the cultivation of legal thinking and strengthen moral leadership. Therefore, the local autonomy strategy can promote the cultivation of legal thinking and indirectly enhance moral leadership.