Several factors can impact sleep quality in patients. Hospital environments are often noisy and bright, which can disrupt sleep. Pain, anxiety, and underlying medical conditions also play a significant role. Medications, especially those with stimulating properties, can interfere with sleep as well. Addressing these factors is crucial to improving patient outcomes.