A polymer is imprinted with an agricultural chemical molecule having a heterocyclic ring, wherein the matrix of said polymer has been prepared from one or more monomers including bilirubin or a mono-or di-ester or amide thereof, and wherein the heterocyclic ring has 1-3 nitrogen atoms. The imprinted polymer is useful for removing agricultural chemicals from liquids including waste water, drinks and food ingredients.Cette invention concerne un polymère portant une empreinte moléculaire de type molécule chimique agricole comprenant un cycle hétérocyclique. La matrice du polymère selon l'invention a été préparée à partir d'un ou de plusieurs monomères comprenant la bilirubine ou un monoester/diester ou un amide de celui-ci, et ledit cycle hétérocyclique comporte de 1 à 3 atomes d'azote. Le polymère à empreinte moléculaire selon l'invention est utile pour éliminer les produits chimiques agricoles des liquides comprenant les eaux usées, les boissons et les ingrédients alimentaires.