Research reveals the connection of a common vitamin to the quality of sleep. A recent study revealed an important role of vitamin D in improving the quality of sleep, which indicates bad effects of its deficiency, such as waking up and not feeling deeply rested at night.