The present invention provides methods of treating viral infection of the eye or posterior ocular condition including administering a pharmaceutical composition comprising a compound described in the present application. In some embodiments, the pharmaceutical composition is topically administered. In another embodiment, the pharmaceutical composition is orally administered or intraocularly administered.