Elderly patients undergoing surgery often suffer from sleep disorder. Holistic therapies might help them sleep better. The aim of this research was to determine the effect of guided imagery along with breathing relaxation on sleep quality in elderly patients undergoing abdominal surgery. A double-blind randomized clinical trial was conducted on 90 elderly patients undergoing abdominal surgery in 2 educational hospitals in 2018, Mashhad, Iran. The elderly patients with different abdominal surgical procedures were distributed to the wardrooms and then the rooms were randomly assigned into 2 groups. In the intervention group, the patients learned breathing relaxation the day before surgery and then an audiotape was provided to perform the guided imagery from the day before surgery for 5 days (twice) along with breathing relaxation. St Mary's Hospital Sleep Inventory was completed the night before, 48 hours and 96 hours after the surgery. Data analysis was done using SPSS 21 through analytical tests. Results of the test indicated that the score of sleep quality was significantly higher in the intervention group the night before surgery (P = .001). The total scores of sleep quality in the intervention group 48 and 96 hours after the surgery were significantly higher (P < .001). Based on results of generalized estimating equation model, the score of sleep quality for patients was 8.76 units higher in the intervention group than in the control group by controlling for the effects of time. Guided imagery along with breathing relaxation improved the sleep quality of the elderly patients undergoing abdominal surgery.Trial registration: IRCT20180731040652N1.