The present invention relates to a molecularly imprinted polymer for binding glycans, wherein the molecularly imprinted polymer is obtainable by providing a saccharide template such as a glycan; providing at least two functional monomers capable of cooperatively; interacting with the template; providing a crosslinking monomer; polymerizing the monomers optionally dissolved in a solvent, in presence of the saccharide template; and removing the template from the formed polymer. The invention is also related to a method for their production and use of the molecularly imprinted polymer.