A drug delivery system is disclosed. The drug delivery system includes arecognitive polymeric hydrogel through which a drug is delivered by contactingbiological tissue. The recognitive polymeric hydrogel is formed using a bio-template, which is a drug or is structurally similar to the drug,functionalized monomers, preferably having coamplexing sites, and cross-linking monomers, which are copolymerized using a suitable initiator. Thecomplexing sites of the recognitive polymeric hydrogel that is formedpreferably mimics receptor sites of a target biological tissue, biologicalrecognition, or biological mechanism of action. The system in accordance withan embodiment of the intention is a contact lens for delivering a drug throughcontact with an eye.