Objective To observe the effect of betamethasone combined with ropivacaine on postoperative analgesia and sleep depth in patients undergoing laparoscopic cholecystectomy.Methods A total of 150 patients undergoing laparoscopic cholecystectomy treated in the Hangzhou Traditional Chinese Medicine Hospital from October 2021 to December 2022 were selected as the study objects and divided into group A,group B and group C,with 50 cases in each group.Groups A and B were treated with ropivacaine and betamethasone at different doses(5 mg,2.5 mg),while group C was treated with ropivacaine only.The perioperative period indexes of the three groups were compared.Pain degree at 4,8,12,24 and 48 h after surgery and Pittsburgh Sleep index(PSQI)scores at 1 day before surgery,1 day and 2 days after surgery were compared among the three groups.Results There were no significant differences in operation time,anesthesia time,postoperative exhaust time and hospital stay,and the dosage of fentanyl and propofol among the three groups(all P>0.05).The Visual Analogue Scale(VAS)scores of group A and group B at 4,8,12,24 and 48 h after surgery were significantly lower than those of the group C(all P<0.05),and the VAS scores of group A at 12,24 and 48 h after surgery were significantly lower than those of the group B(all P<0.05).There was no significant difference in PSQI scores 1 day before surgery among the three groups(all P>0.05).The PSQI scores of the group A and the group B 1 and 2 days after surgery were significantly lower than those of the group C(all P<0.05),and the PSQI scores of the group A 2 days after surgery were significantly lower than those of the group B,with statistical significance(P<0.05).There was no significant difference in the incidence of adverse reactions between the group A and the group B and the group C(all P>0.05).Conclusions Betamethasone combined with ropivacaine can improve postoperative analgesia and sleep quality in patients undergoing laparoscopic cholecystectomy.