Magnesium supplements are said to help with a long list of ailments: sleep problems, migraine headaches, depression, high ...
its best to take it about 30 minutes before bed. It's also worth noting that there are many forms of magnesium, and some are thought to contribute to a restful night's sleep more than others.