AIM: To evaluate the effect of remimazolam on early postoperative cognitive function in elderly patients with hip fracture based on a randomized controlled trial. METHODS: A total of 106 elderly patients, aged 65-90 years, ASA grade Ⅱ or III, who underwent hip fracture surgery under combined spinal-epidural anesthesia in the Sixth Affiliated Hospital of Wenzhou Medical University from December 2022 to June 2023 and met the inclusion criteria, were selected and randomized into remimazolam group (group R) and propofol group (group P) according to the random number table, with 53 cases in each group. Patients in group P received a slow intravenous injection of propofol at a dose of 0.3-0.5 mg / kg (injection time of 1min), followed by a pump infusion at 0.5-3 mg · kg