Lifestyle changes can greatly impact sleep quality. Regular physical activity can enhance sleep, but it should be done earlier in the day. Diet also plays a role; avoiding caffeine and alcohol, especially in the evening, can prevent sleep disturbances. Additionally, maintaining a regular sleep schedule by going to bed and waking up at the same time each day can help regulate the body's internal clock.