The invention belongs to the field of molecular imprinting detection, and in particular relates to an electrochemical sensor for measuring 2,4,6-trichlorophenol based on molecular imprinting technology and its preparation and application. In the present invention's electrochemical analysis technology for existing 2,4,6-trichlorophenol, 2,4,6-trichlorophenol and its structural analogues have similar oxidation potentials, resulting in insufficient specific recognition of the target good. The electrochemical sensor prepared in the present invention is based on molecular imprinting technology and can be used to selectively recognize 2,4,6-trichlorophenol. The electrode modification material uses carbon quantum dot-polymer composite film, which is low in cost and environmentally friendly; the sensor is simple to prepare, the reaction conditions are mild, the process is easy to control, and it has good sensitivity to template molecules and strong anti-interference. Can be used for quantitative analysis of 2,4,6-trichlorophenol.