Here, the authors report a hydrogel combining Schiff base and thiuram disulfide groups for light responsive behaviour and varying stress relaxation.