In this work, a novel photoresponsive materials has been successfully developed. We have synthesized the series of azopolymers containing derivatives of sulfamerazine and studied their photochromic properties. The polymers were obtained from methacrylate azomonomers, butyl methacrylate and isobornyl methacrylate by radical polymerization. Spectral properties and photoisomerization kinetic constants were determined for thin transparent films, using UV-Vis spectroscopy. The maximum absorption of the films was observed at 432-440 nm. The obtained materials showed ability to reversible trans-cis photoisomerization. Reversibility of the process was confirmed during ellipsometric measurements. The change of the real part of the complex refractive index induced by laser irradiation was between 0.010 and 0.053. Additionally, some properties of described polymers and azobenzene derivatives were calculated and were utilized in order to better understand the differences in the photochromic behaviour of the new materials. Moreover, we determined the suitability of the obtained azopolymers for spontaneous surface relief grating inscription.Spontaneous surface relief grating recording on the thin azopolymer films was carried out using set-up with one laser beam. The spontaneous SRG was successfully recorded in all investigated polymers.