In this paper, sulfonic acid functionalized 1,4-diazabicyclo[2.2.2]octane (DABCO)-based magnetic nanoparticle Fe3O4 [Fe3O4@SiO2@Pr-DABCO-SO3H]Cl2 was synthesized and fully characterized using various techniques. Then the catalyst was examined for the convenient synthesis of spiropyran derivatives, resulting in high reaction yields, short reaction times, and the recovery and reusability of the catalyst.