For studying the effect of a substituted group on the photoresponsive third-order nonlinear-optical (NLO) properties, photosensitive azobenzene derivative. Then H 2 L2 with a substituted methyl on the azobenzene ring was used to constructWhen the azobenzene moiety of the complexes is trans, the NLO behaviors of the complexes are the same. However, after the azobenzene moiety is excited by ultraviolet (UV) light to change from trans to cis, the substituted methyl increases the repulsion between two azobenzene rings in 3 and 4, thereby affecting their NLO behaviors. Therefore, the nonlinearity of the two types of complexes is different after UV irradiation. Density functional theory calculations support this result. The substituted methyl has a significant influence on the nonlinear absorption behaviors of 3 and 4. This work not only reports the examples of photoresponsive NLO materials based on metal complexes but also provides a new idea to deeply explore NLO properties.