A facile and efficient approach for the fabrication of Fe3O4@TiO2 nanospheres with a good core–shell structure has been demonstrated. Products were characterized by scanning electron microscopy (SEM), transmission electron microscopy (TEM), X-ray photoelectron spectra (XPS), X-ray diffraction (XRD) and vibrating sample magnetometer (VSM). The results showed that Fe3O4@TiO2 nanocomposites exhibited high degree of crystallinity, excellent magnetic properties at room temperature. Furthermore, the as-prepared Fe3O4@TiO2 nanocomposites exhibited good photocatalytic activity toward the degradation of Rhodamine B (RhB) solution. Additionally, the recycling experiment of Fe3O4@TiO2 nanocomposites had been done, demonstrating that Fe3O4@TiO2 nanocomposites have high efficiency and stability.