Disclosed herein are a hydrogel-forming polymer and a process of making the same. Also disclosed are a sustained-release pharmaceutical composition that contains a therapeutic agent and the aforesaid hydrogel-forming polymer, and a method for treating or preventing an ophthalmic disorder, which includes intraocularly administering into an eye of a mammal in need of such treatment a sustained-release pharmaceutical composition that contains an ophthalmic drug and the aforesaid hydrogel-forming polymer.