Hydrogels and lyophilisates were obtained by chemical crosslinking of gelatin using N-hydroxysuccinimide and N, N-(3-dimethylaminopropyl)-N'-ethylcarbodiimide hydrochloride. The systems were characterized with respect to the degree of crosslinking, morphology, water uptake, in vitro drug release and biocompatibility studies. Pilocarpine hydrochloride, a drug for the treatment of glaucoma, was loaded by soaking in an aqueous solution containing the drug. In vitro, the released drug percentage varied between 29.2% and 99.2% in 8 h of study. The release data were fitted to the Korsmeyer-Peppas equation to calculate the release exponent, which indicated anomalous transport for the release of pilocarpine. The corneal endothelial cell culture tests indicated that the prepared biomaterials are not cytotoxic.