OBJECTIVE: To establish a method for simultaneous determination of gallic acid and ellagic acid in Xihe majun ointment. METHODS: HPLC method was performed on the column of X-Bridge C18 with mobile phase of methanol-acetonitrile-0.2% Phosphoric acid solution (gradient elution) at a flow rate of 1.0 ml/min, detection wavelength was 254 nm,detection temperature was 30 ℃, and injection volume was 10 μl. RESULTS: The linear range was 0.132-0.792 μg for gallic acid (r=0.999 9) and 0.108 0-0.648 2 μg for ellagic acid (r=0.999 9); RSDs of precision, stability and reproducibility tests were lower than 3%; recoveries were 95.15%-99.69%(RSD=1.64%,n=9) and 97.24%-100.43%(RSD=1.24%,n=9). CONCLUSIONS: The method is simple, accurate and sensitive, and can be used for the content determination of gallic acid and ellagic acid in Xihe majun ointment.