Against the backdrop of the Ministry of Education's promotion of new agricultural science construction and interdisciplinary integration, a comprehensive chemistry experiment to enhance the practical skills of students in preparing biomass functional materials and detecting pesticide residues was designed. Natural loofah was utilized as a precursor in synthesizing nitrogen-doped magnetic porous carbon materials, which were then applied in a magnetic solid-phase extraction (MSPE) technique. Subsequently, high performance liquid chromatography (HPLC) was employed to analyze and detect the phenylurea herbicide monuron in tea. The experimental process included material synthesis, characterization, optimization of the MSPE conditions, adsorption performance studies, and HPLC, reflecting its scientific, systematic nature and providing a comprehensive learning platform for students. It not only deepens student understanding of the relationship between material characterization and application, but also improves their experimental design and problem-solving capacities. Moreover, by integrating cutting-edge science, ideological and political education, and experimental training, it not only stimulates student interest in scientific research and cultivates innovative thinking and practical skills, but also strengthens their feelings of social responsibility and historical mission. This approach realizes the comprehensive educational goals of experimental training and lays the foundation for nurturing high-quality talent with a global perspective and sense of social responsibility.