The invention discloses a coding phase gradient metasurface based on a Pancharatnam-Berry phase. By taking a phase gradient metasurface as a coding unit, internal phase modulation of the coding unit can be realized; by performing modulation on the internal phase gradient in the coding unit, different effects, such as abnormal reflection, focusing, imaging and the like, can be realized; by performing sequential combination on designed coding units with special electromagnetic characteristics, different effects can be generated; according to the coding phase gradient metasurface based on the Pancharatnam-Berry phase, more flexible control on electromagnetic wave can be realized from two aspects of the coding unit and the coding sequence; the coding phase gradient metasurface has the advantages of easy operation in design, convenience in applying, easy processing and manufacturing, and the like; and the ; the coding phase gradient metasurface has significant application prospect in the aspects of antenna, imaging, reduction of radar scattering area, and the like.