The invention relates to an ophthalmic gel, which is composed of a matrix, active ingredients of traditional Chinese medicine, auxiliary materials and water, the matrix is hyaluronic acid and / or sodium hyaluronate, and the ophthalmic gel is prepared by the following method: Add appropriate amount of water to the water-soluble excipients, heat to dissolve, and filter to obtain a clear liquid; add the matrix to the above clear liquid, soak, let it stand for several hours, and then stir evenly; add active ingredients of traditional Chinese medicine to the mixture obtained in the above steps to make up Water to a specific content, stirred evenly, and packaged to obtain finished products; wherein, the matrix, active ingredients of traditional Chinese medicine, auxiliary materials and water have the following mass ratios, matrix: active ingredients of traditional Chinese medicine: auxiliary materials: water=0.05~10.0:0.1~ 40.0: 1-14: 50-98; the active ingredient of the traditional Chinese medicine is one of the following components: bear bile or its extract, pearl or its extract, Zijinlong extract. The ophthalmic gel can increase the residence time of the medicine in the eye and reduce the loss of the medicine.