The food antioxidant quercetin was used as a template in an ultrathin molecularly imprinted polymer (MIP) film prepared by photopolymerization. Indium tin oxide (ITO) plates were electrografted with aryl layers via a diazonium salt precursor bearing two terminal hydroxyethyl groups. The latter act as hydrogen donors for the photosensitizer isopropylthioxanthone and enabled the preparation of MIP grafts through radical photopolymerization of methacrylic acid (the functional monomer) and ethylene glycol dimethacrylate (the crosslinker) in the presence of quercetin (the template) on the ITO. The template was extracted, and the remaining ITO electrode used for the amperometric determination of quercetin at a working potential of 0.26 V (vs. SCE). The analytical range is from 5.10(-8) to 10(-4) mol L-1, and the detection limit is 5.10(-8) mol L-1.