Life philosophy education is an important teaching content of the “Moral and Rule of Law” course in universities. In response to the cognitive characteristics, thinking patterns, and educational laws of college students, in the process of teaching practice, the worldview of Marxist philosophy and psychological theories such as the relationship between income and happiness, social comparison, altruistic psychology, and flow effects are integrated to deeply analyze issues related to life and values, stimulate students' learning motivation, effectively expand their comprehensive cognitive horizons, and lay a solid foundation for cultivating talents with excellent moral qualities and legal concepts.