Based on the current background of teacher ethics construction, this paper explores the influence mechanism of labor contract on university teacher ethics. A questionnaire survey was conducted among university teachers in various regions of China and 397 valid data were collected. SPSS 22.0 and MPLUS 7.0 were used for statistical analysis. The results show that the labor contract has a significant positive predictive effect on teacher ethics. The organizational identity and professional identity of university teachers play a complete intermediary role between the labor contract and teacher ethics. On this basis, management inspiration is put forward to provide decisionmaking reference for the construction of teacher ethics for the government and universities.