Objective To develop a method for determination of gallic acid and ellagic acid in three kinds of Yitirifeili preparation. Methods HPLC method was used to determine the content of gallic acid and ellagic acid.The analysis was performed on Waters XBridge ShieldRP C18column(4.6 mm×250 mm,5 μm) with the mobile phase consisted of methanol-acetonitrile-0.2% phosphoric acid in gradient elution manner.The flow rate was 1.0 mL·min-1,the column temperature was 25 ℃,and the detection wavelength was 254 nm. Results The linear ranges of gallic acid and ellagic acid were 0.132-0.792 μg,0.108-0.648 μg,respectively.Both correlation coefficient were more than 0.999 9.The average recovery of gallic acid and ellagic acid were 98.11%(n=9),RSD=1.39%;99.32%(n=9),RSD=2.48%. Conclusion The method is accurate and reliable.It can be used as the quality control of Yitirifeili preparations.