((N,N'-dimethylacrylamide)-co-4-phenylazophenyl acrylate) at the active site of endoglycanase creates a photoswitchable protein hybrid. The resulting hybrid catalyzes the hydrolysis of glycoside when irradiated by 350 nm UV light, but turns inactive under 420 nm visible light depending on the conformation of the conjugated polymer.