To explore the influence of comfort nursing theory on the postoperative rehabilitation quality of patients with intracranial aneurysms. From October 2017 to December 2022, 315 patients with intracranial aneurysms underwent interventional surgery in our hospital were included in this retrospective study and divided into the routine group (n = 105) and comfort nursing group (n = 210) based on different nursing methods. The Glasgow Outcome Scale (GOS) was used to assess patient rehabilitation outcomes. Patients’ anxiety, pain, quality of life, and their satisfaction with treatment were compared. Compared with the patients receiving routine nursing, the time for comfortable nursing patients to resume normal diet, get out of bed and exercise, and the total hospital stay were significantly shortened. And the GOS score of patients receiving comfort nursing was significantly higher than that of patients receiving routine nursing. After nursing, self-rating anxiety scale and visual analog scale scores of comfortable nursing patients were significantly lower than those of routine nursing, and Karnofsky performance status scores were significantly higher than those of routine nursing. This showed that receiving comfortable nursing was beneficial to improve perioperative anxiety and depression in patients with intracranial aneurysm, and significantly improve the quality of life of patients. The total satisfaction of comfortable nursing patients was 95.24%, while that of routine nursing patients was 76.19%. Complications occurred in 30 patients receiving routine nursing, while only 15 patients received comfort nursing. The immune indexes such as CD3
+, CD4
+, and CD23
+ of comfortable nursing patients were significantly higher than the routine nursing patients within 1 and 5 days after operation, while the immune indexes of CD8
+ were lower than the routine nursing patients 5 days after operation. Comfortable nursing from the perspective of quality nursing can significantly improve the physiological indicators of patients with intracranial aneurysms, accelerate the progress of postoperative rehabilitation, improve the anxiety, pain and quality of life of patients, and improve the satisfaction of patients with nursing. Comfort nursing from the perspective of quality nursing can reduce the occurrence of postoperative complications, which may be achieved by improving the patient’s immune function.