Provided are a photoresponsive compound, composition, and polymer compound. A photoresponsive polymer compound according to the present invention contains an azo compound-based repeating unit represented by formula (B). (In formula (B), m represents an integer of 1-18; and R represents a hydrogen atom or a methyl group.)