In order to effectively provide ideological and political education to students in the teaching process of analytical instrument courses, the master's students were taken as the research object in agricultural engineering at Tianjin Agricultural University. The ideological and political elements and moral education functions contained in the course were deeply explored and extracted in terms of the teaching content. The typical ideological and political cases were established, and the outline has been supplemented and revised. On this basis, the organic integration of ideological and political cases with professional knowledge is achieved through teaching design, and achieved the unity of explicit education and implicit education.