The invention provides an azobenzene polymer material which has a structure represented by formula I shown in the description. The azobenzene polymer can be isomerized under photoinduction, can be changed in glass-transition temperature, can produce a reversible solid-liquid transition at room temperature, and has and has repeatable self-repairing and surface repairing effects. Meanwhile, a trans-azobenzene polymer is solid, has strong adhesion and can bear loads. In contrast, a cis-azobenzene polymer is liquid and has weak adhesion, which means photoisomerization can cause load drop. Therefore, the azobenzene polymer provided by the invention can be used as a photoresponsive self-repairing material and a light-controlled reversible adhesive, and can solve problems a conventional thermoplastic polymer material in plastics, remodeling and damage repair of a coating, separation, recycling and adhesive surface repair of an adhesive and the like.