The present invention relates to a mesoporous polymeric separation material comprising one or more functional groups bound to metal ions from Cu, Zn, Ag, or Pd. Methods of producing the material, as well as methods for its preparation, and use of said material in separation of pesticides from food or feed products is disclosed.