The invention discloses a Hartmann wave-front sensor based on metamaterials. The Hartmann wave-front sensor comprises the metamaterials and a CCD area array. The metamaterials are divided into a plurality of sub metamaterials with the same refractive index distribution. Light is focused on the CCD area array by the sub metamaterials. Each sub metamaterial comprises a substrate and a plurality of artificial metal microstructures distributed on the substrate in a periodical mode, the refractive indexes of the sub metamaterials are distributed in a circle mode, the circle center is a central point of the sub metamaterials, the refractive index at the position of the circle center is maximum, the refractive indexes at the positions with the same radius are the same, and the refractive indexes are reduced along with increase of the radius. According to the Hartmann wave-front sensor, the metamaterial theory is used for preparing metamaterial arrays to converge the light, and microlens arrays of a traditional Hartmann wave-front sensor are replaced. The Hartmann wave-front sensor is simple in electromagnetic parameter adjustment and controllable in converge focus, and the overall design of the Hartmann wave-front sensor can be greatly simplified. Meanwhile, the metamaterials are in panel shapes, the metamaterials are simple in preparation process, low in cost, better in abrasive resistance than a traditional lens, and long in service life.