A novel and recyclable catalytic system was prepared by linking polyethyleneimine (PEI) to tannic acid (TA) using 1,3-dibromopropane, as a cross-linker, to afford (TA-PEI) composite during a convenient and inexpensive procedure. Moreover, to increase the efficacy of the catalyst and to reduce the reaction time, magnetization and sulfonation of the prepared nano-catalyst have been properly performed to afford the final TA/PEI/magnetic/sulfonated (TPMS) supramolecular heterogeneous nonmagnetic composite. The TPMS catalytic system was characterized by various spectrometric and analytical techniques including Fourier transform infrared (FT-IR) spectroscopy, field emission scanning electron microscopy (FE-SEM), thermal gravimetric analysis (TGA), X-ray diffraction (XRD), energy-dispersive X-ray spectroscopy (EDX) and vibrating sample magnetometer (VSM). Furthermore, the heterogeneous TPMS nanocomposite catalytic sytem demonstrated excellent catalytic activity for the one-pot synthesis of 2,3-dihydroquinazole derivatives through a green and sustainable procedure to afford desired products in good to excellent yields. The supramolecular TPMS catalytic system have several advantages including easy separation, nature-friendly, eco-friendly, cost-effective, and reduced reaction time. The reusability of TPMS nanocatalyst was also investigated and the results showed that there is not any significant decrease in the efficiency of the catalyst after five reaction cycles.