The purpose of this study is to explore how to effectively integrate ideological and political education into the mathematics curriculum by proposing a "combination of classroom teaching, practical training projects, and competition activities". By organically combining classroom teaching, practical training projects, and competition activities, it promotes students' learning of mathematical knowledge while enhancing their sense of social responsibility and professional ethics. Research results show that this model has significantly improved students' mathematics performance, especially in terms of basic knowledge and modelling ability. At the same time, by participating in mathematical modelling competitions and practical training, students have demonstrated strong teamwork spirit and innovation ability, and their professional ethics have been significantly improved. Through questionnaires and interviews, the feedback results show that students attach great importance to the practical value of the curriculum and ideological and political education. Finally, the research suggests that the integration of ideological and political elements into more mathematics courses should be explored in the future, in order to improve the quality of education and cultivate high-quality talents with a sense of social responsibility and professional ethics.