A series of novel spirooxazine(SPO) derivatives containing nitrogen heterocycles was synthesized and characterized by 1H NMR spectra, Fourier transform infrared(FTIR) spectra, mass spectra(MS) and elemental analysis, and their photochromic behaviors were fully investigated in solvents and polymer media. In solvents, they displayed excellent photochromism properties such as high photochromic response and fast thermal bleaching rate. Especially, compounds 1 and 4 exhibited strong fluorescence intensities in dichloromethane solution. It was additionally found that compound 4 showed high fatigue resistence in poly(methyl methacrylate)(PMMA) film, and the thermal decay curves were fitted with biexponential function in PMMA film.