Abstract:Ideological and political elements should be integrated into professional courses in colleges and universities to realize collaborative education. However, how to organically integrate ideological and political elements into professional courses to achieve the effect of like flowers in spring and moistening things silently still needs further exploration and research. Taking the professional course of soil mechanics as an example, this paper adds ideological and political objectives to the teaching objectives, deeply excavates the ideological and political elements contained in the professional knowledge from the perspectives of specialty, industry, country, international, culture and history, and organically integrates the ideological and political elements into the teaching cases. In this way, it deeply analyzes the realization ways from traditional professional courses to curriculum-based ideological and political education from face to point and layer by layer. In addition, combined with their own curriculum-based ideological and political teaching experience, this paper puts forward some methods to improve teachers’ curriculum-based ideological and political teaching ability, such as self-cultivation, database building and discussion.