Abstract:In recent years, the integration of professional courses and ideological and political courses, the organic integration of ideological and political education into the whole process of professional education and teaching, and the full play of the educational role of each course are new attempts of ideological and political education, are important measures to cultivate first-class talents and realize the fundamental task of moral cultivation in China. Taking soil mechanics as an example, based on a deep understanding of the characteristics and engineering problems of soil and a comprehensive understanding of the curriculum system, determine the path of ideological and political construction of soil mechanics curriculum: determine the teaching goal of ideological and political education of soil mechanics curriculum according to the orientation of the education goal of the civil engineering specialty of the college, establish a teaching team, create teaching resources, and reform teaching methods and assessment methods; deeply excavate the connotation and extension of the curriculum, refine the four ideological and political elements of the curriculum: family and country feelings, scientific spirit, engineering ethics, professional interest and identity. According to the ideological and political elements, closely combine with the teaching content, select a number of typical and localized ideological and political teaching cases from different historical periods and different education angles, and organically and effectively integrate them into daily teaching links, such as salt into water, moistening things silently. While students master the basic professional knowledge, they can be influenced by the education of socialist core values. Through the implementation of ideological and political education in soil mechanics, students’ learning has been actively improved, their professional responsibility and safety awareness have been enhanced, and their professional interest and recognition have been enhanced. The integration of "knowledge teaching", "ability training" and "value guidance" has been achieved, forming the synergistic effect of soil mechanics curriculum education and ideological and political education, and becoming an effective supplement and auxiliary force for ideological and political education.