Colorectal cancer is the second leading cause of cancer-related deaths among digestive tract malignancies, following gastric cancer. Sleep is of great significance for maintaining human health. The incidence of sleep disorders in patients with cancer is approximately twice that observed in the general population. Lack of sleep can prolong hospital stays, increase the likelihood of infection, and increase mortality rates. Therefore, studying the factors related to sleep quality is significant for improving the quality of life of patients with malignant tumors of the digestive tract. To investigate the relationships among sleep quality, disease uncertainty, and psychological resilience in patients undergoing chemotherapy for digestive tract malignancies. A total of 131 patients with malignant digestive tract tumors who were treated at Hefei BOE Hospital between April 2021 and September 2022 were selected as research participants. Based on their Pittsburgh Sleep Quality Index (PSQI) scores, participants were divided into either the sleep disorder group (PSQI score > 7) or the normal sleep group (PSQI score ≤ 7). The clinical data-together with the Mishel Uncertainty in Illness Scale for Adults (MUIS-A) and Connor-Davidson Resilience Scale (CD-RISC) scores-were compared. In this study, 78 (59.54%) patients with digestive tract malignancies developed sleep disorders after chemotherapy. Sleep disorder incidence was higher in patients with colorectal cancer than in those with gastric and esophageal cancers (P < 0.05). The total MUIS-A score and those for each item in the sleep disorder group were higher than those in the normal sleep group. The total CD-RISC score and those for each item in the sleep disorder group were lower than those in the normal sleep group (P < 0.05). The PSQI scores of patients with malignant digestive tract tumors were positively correlated with the scores for lack of disease information, disease uncertainty, and unpredictability in the MUIS-A and negatively correlated with the scores for tenacity, self-improvement, and optimism in the CD-RISC (P < 0.05). Patients undergoing chemotherapy for digestive tract malignancies are prone to sleep problems related to disease uncertainty and psychological resilience. Therefore, interventions can be implemented to improve their sleep quality.