The invention discloses a medicine for treating photophobia and a preparation method thereof. The medicine is mainly prepared from the following components: pillis ophidiae, pig liver, arachis pintoi, phyllanthus emblica, herba pyrolae, fructu broussonetiae, wideleaf osbeckia roots, herba violae, kadsura coccinea, centipeda minima, wahlenbergia marginata, rubus hirsutus, leaves of betel pepper, small-leaved desmodium, leucas zeylanica, smallfruit fig aerial roots, thunberg grapevine roots, cyprinus carpio linnaeus, meadowrue root and rhizome, purslane seeds, flos chrysanthemi, adina pilulifera, melothria indica, stelmatocrypton khasianum, caulis benincasae, flos buddlejae, cynanchum amplexicaule, eucommia ulmoides, Chinese wolfberry fruits, ligustrum lucidum and actinostemma tenerum according to a certain weight ratio. The medicine has functions of nourishing the liver and blood, eliminating eye opacity, diminishing swelling, clearing heat, improving eye sight, cooling blood and nourishing the liver, and can take effect quickly and has a good curative effect when treating photophobia.