As the main position of Ideological and political education, colleges and universities undertake the important task of improving the ideological quality of college students and cultivating successors of socialism with Chinese characteristics. The governance of Ideological and political education in Colleges and universities is an important part of national governance, so it is particularly important to carry out ideological and political education in Colleges and universities. To strengthen ideological and political education in college courses, we should constantly reform and innovate in practice, actively absorb various theoretical ideas, and provide guiding ideology for the practice of Ideological and political education in college courses. Gagne's teaching theory research is to combine psychology with school education and make outstanding contributions to the formation and development of teaching technology. Through the study of Gagne's theory, it is found that Gagne's teaching theory and specific operable teaching design technology have important research value for the development of Ideological and political courses in Colleges and universities. Through the use of literature research, questionnaire survey, qualitative research and other methods, this paper studies Gagne's teaching theory, takes the basic idea of Gagne's teaching theory as the guiding ideology, analyzes the problems and current situation of curriculum ideological and political education in college teaching practice, analyzes its reasons, combines the two, and summarizes the Enlightenment of Gagne's teaching theory to college curriculum ideological and political education. It is of great research value for educators, especially ideological and political educators, to study Gagne's theory in depth and obtain enlightenment from it in order to improve the level of higher education. Based on Gagne's teaching thought, this paper integrates ideological and political education into university classrooms, carries out curriculum ideological and political education, and improves the practical application ability of Ideological and political education in Colleges and universities. So far, many experts and scholars have put forward many opinions on the research of teaching theory as the guiding ideology. Ideological and political education in Colleges and universities is a continuous circular process. Only by continuous research, learning and integration, can we find its pedagogy that meets the requirements of the development of the times, and apply it to education, so that the ideological and Political Curriculum in Colleges and universities should adapt to the modernization of national governance, and enhance the soft power of national governance modernization.