In order to provide corresponding anesthesia methods of hepatobiliary diseases and obtain better clinical effect, the hemodynamics and clinical efficacy are evaluated by using different doses of dexamethasone (DEX) during the operation. 97 patients undergoing general anesthesia for hepatobiliary surgery in our hospital from April 2020 to August 2021 are analyzed retrospectively. All patients are divided into G1 (n = 24), G2 (n = 24), G3 (n = 24), and control group (n = 25) according to the random number table method. The G1, G2, and G3 groups are injected with DEX 1.0 ug/kg, DEX 0.8 ug/kg, and DEX 0.5 ug/kg by intravenous infusion pump before induction of general anesthesia, and the control group is injected with 0.9%Nacl solution 10 mL. Intraoperative anesthesia time, postoperative eye opening time, and extubation time of all groups are observed, and the incidences of postoperative adverse reactions are compared. The experimental results show that during general anesthesia in the liver and gallbladder surgery, the patients with high dose of DEX can better maintain the intraoperative hemodynamic parameters, and effectively restrain the postoperative stress reaction.