In this experiment, galangin and celecoxib were dissolved in a 0.5% solution of carboxymethylcellulose sodium. After 2 days of acclimation, the animals were randomly divided into different experimental groups. For the nociceptive behavior tests in the mouse model, the 60 mice were divided into four groups with 15 mice in each group: (1) the control group (mice received 0.5% carboxymethylcellulose sodium), (2) the celecoxib group (mice received celecoxib at a dose of 20 mg/kg), (3) the galangin low-dose group (mice received galangin at a dose of 25 mg/kg), and (4) the galangin high-dose group (mice received galangin at a dose of 50 mg/kg). All rats were treated with the corresponding drugs (different concentrations of galangin and celecoxib) or 0.5% carboxymethylcellulose sodium for seven consecutive days; For the study on pain induced by capsaicin and the protective mechanism of galangin in rats, the 48 rats were divided into six groups with 8 rats in each group: (1) the control group (rats received 0.5% carboxymethylcellulose sodium), (2) the model group (rats received 0.5% carboxymethylcellulose sodium), (3) the capsazepine group (rats received the TRPV1 antagonist capsazepine at a dose of 2 mg/kg, 200, intravenous injection), (4) the celecoxib group (rats received celecoxib at a dose of 20 mg/kg), (5) the galangin low-dose group (rats received galangin at a dose of 25 mg/kg), and (6) the galangin high-dose group (rats received galangin at a dose of 50 mg/kg). The corresponding drugs were administered via continuous gavage or intraperitoneal injection for 7 days. Rats in all groups, except the control group, were then injected with 0.5% capsaicin (TRPV1 agonist).