To explore the effect of predictive nursing on the mental state, compliance and sleep quality of elderly patients with cervicitis. The clinical data of 96 elderly patients with cervicitis who were admitted to our hospital from June 2019 to June 2021 were selected as the research objects. According to the different treatments, they were divided into a control group and an observation group with 48 cases each. Among them, the control group was given routine care, and the observation group was given predictive care on the basis of the control group. The effects of the quality of life, mental state, compliance and sleep quality of the 2 groups of patients before and after nursing were compared. Comparing the nursing compliance of the 2 groups of elderly patients with cervicitis, statistics showed that the difference was statistically significant (P < .05). After nursing, the sleep quality, increased arousal, unstable sleep, and night terrors of the 2 groups of elderly patients with cervicitis were significantly improved, and the negative emotion score of the observation group was significantly lower than that of the control group. Statistics show that this difference is statistically significant (P < .05). The comparison of the quality of life scores of the 2 groups of patients before nursing was not statistically significant (P > .05). After nursing, the mental vitality score, social interaction score, emotional restriction score, and mental status of the observation group were significantly higher than those of the control group. Statistics showed that the difference was statistically significant (P < .05). After nursing, the psychological pressure of the 2 groups of elderly patients with cervicitis was significantly improved, and the observation group fear, anxiety, desire for knowledge, fear of discrimination, despair, and low self-esteem were significantly lower than those of the control group. The difference was statistically significant (P < .05). Predictive nursing can effectively improve the quality of life and sleep of elderly patients with cervicitis, reduce psychological pressure, improve compliance and sleep quality, and benefit the prognosis and clinical treatment of patients. It has a certain reference value for the nursing of elderly patients with cervicitis.