The invention is directed to a topical lidocaine gel composition comprising lidocaine or a salt thereof and magnesium chloride. The invention is further directed to a method of inducing local anesthesia in an eye of a patient comprising topically applying compositions of the present invention to the eye of the patient.