Provided herein is an ophthalmic composition including a therapeutic active agent and an anti-inflammatory agent, in which the active agent is at least about 0.01% w/v of chlorhexidine, derivatives, or analogues of chlorhexidine, or a pharmaceutically acceptable salt, solvent, hydrate, or polymorph thereof. Methods for treating or preventing ocular disease or infection in a subject in need thereof are also provided. The method may include administering to an eye of a subject an ophthalmic composition including chlorhexidine, derivatives, or analogues of chlorhexidine, or a pharmaceutically acceptable salt, solvent, hydrate, or polymorph thereof, and an anti-inflammatory agent. The chlorhexidine, derivatives, or analogues of chlorhexidine, or a pharmaceutically acceptable salt, solvent, hydrate, or polymorph thereof and the anti-inflammatory agent are present in an amount effective to treat or prevent the ocular disease or infection in a subject in need thereof.