Abstract:Since the 18th National Congress of the Communist Party of China, colleges and universities have continuously innovated the ideological and political education of college students and created a new stage in the development of China's higher education. However, how to practice Xi Jinping Thought on Socialism with Chinese Characteristics for a New Era into textbooks, classrooms and minds, and effectively promote the integration of professional education and ideological and political education, is the focus and difficulty of the current ideological and political education research in colleges and universities. By excavating the moral education elements contained in civil engineering, taking Tongji University ideological and political education teaching reform pilot course-construction engineering laws as an example, this paper studies the construction path of curriculum-based ideological and political education in civil engineering and puts forward suggestions for further exploring the reform of ideological and political education construction in civil engineering:firstly, combining with course characteristics, focusing on the reform of teaching mode and the innovation of teaching methods, and concretizing the content of ideological and political education; secondly, emphasizing implicit education and giving full play to teachers' value leading role of affecting students spontaneously and silently; thirdly, improving students' self-knowledge and cultivating their consciousness of studying politics consciously.