The subject invention relates to a method of preparing a biocompatible polymer comprising epsilon-linked L-lysine having free alpha-amino and carboxy functions. The invention further encompasses the resulting biocompatible polymer and articles made from the polymer, in particular contact and intraocular lenses.