A stable PNIPAM/Fe_3O_4/g-C_3N_4 composite photocatalyst was designed and prepared by a thermal photoinitiation technology.The structure and properties of the materials were characterized and the composite photocatalyst was found to show good stability for tetracycline degradation.The sample not only retained the magnetic properties of Fe_3O_4,allowing it to be recycled,but its photocatalytic properties could also be changed by controlling the temperature of the reaction system.The degradation intermediate products of tetracycline were further investigated by MS.This work provides a new facile strategy for the development of intelligent and recyclable photocatalytic materials.