In this study, CuFe2O4/g-C3N4 nanocomposite was fabricated and characterized by using various techniques including FT-IR, XRD, EDX, VSM and FE-SEM. Furthermore, the prepared nanocomposite was applied as a highly effective, heterogeneous and recyclable catalyst for multicomponent synthesis of spirooxindole derivatives as target heterocyclic compounds. Additionally, the current research was shown unique advantages such as; simple synthesis of the catalyst, remarkable magnetic properties, convenient separation of the catalyst using a permanent magnet and the application of cheap and available precursors. At the end of the reaction, it was gained the high yields of products at short reaction times. This indicates the strong catalytic performance of the catalyst that was prepared.