There are interactive relationships between changes in social class structure and ideological and political education. On one hand, the changes in social class structure provide a macro social background for ideological and political education, shaping the object and internal structure of ideological and political education; on the other hand, ideological and political education actively affects the changes in social class structure and plays an important role in guiding the values of different social groups. Since the founding of the Peoples Republic of China, the social class structure has undergone major changes. Ideological and political education has kept in alignment with and served the central tasks of the Party and the country, conformed to the trend of changes in class composition, paid attention to social ideological issues, and accumulated rich experience in the process of responding to the changes in social class structure. In the new journey of building a modern socialist country in an allround way, China has been in a critical period for the formation of an ideal social class structure. In view of the trend of differentiation in social spatial structure and under the complex situation in the field of social ideology, promoting the formation of an ideal social class structure and building ideological consensus among members of different class groups have become new tasks and challenges for ideological and political education. To this end, ideological and political education should deeply embed its functional values into the formation process of the ideal social class structure, realize extensive coverage on a categorized basis in the reshaping of the social spatial pattern, and achieve integrated innovation of the internal structure in the precise response to the evolution of social values.