The vaginal hydrogel may be a composition which includes a glycosaminoglycan, a reactive molecule, and, in some embodiments, a therapeutic agent. The glycosaminoglycan and the reactive molecule may include either thiol groups or thiol reactive sites and have a pH that is within a range of a normal vaginal environment. Some of the thiol groups may interact with the vaginal mucosa and allow the hydrogel to remain in the vagina for a longer period than existing compounds intended for intravaginal administration. Therapeutic agents may be included in the composition. In these embodiments, the hydrogel acts as a vehicle which delivers the therapeutic agent.