Magnesium is an important nutrient involved in many processes in the body. It has been shown to support sleep in several ways and is often taken before bed due to its calming properties.