In this paper, crystalline polyimide (11) containing xanthene and 1,2,4-triazole moiety was prepared by reaction between the novel synthesized diamine (9) and commercial pyromellitic dianhydride (10). In the next step, the pure zeolite was synthesized and magnetized with cobalt-ferrite nanoparticles (Co-Fe2O4) and hydrothermal method. Polyimide film and nanocomposite films from polyimide containing (3 and 5 wt%) of magnetic zeolite were prepared. Structure, optical and thermal properties of polymer and resulting nanocomposites were investigated by using FT-IR, XRD, UV-vis, SEM, TGA, and DTG. Also, magnetic property of the prepared nanocomposites was determined by VSM method. Results indicated the obtained nanocomposites have superparamagnetic property and better thermal stability in compared the pure polyimide.