The current study is a randomized, double-blind, placebo-controlled trial to evaluate the effects of magnesium supplementation on insomnia in the elderly. Subjects consist of volunteers: range 60-75 years, with a clinical diagnosis of insomnia, dietary magnesium intake lower than 75% of RDA and total serum magnesium lower than 0.95 mmol/L. Reasons for the exclusion from the study is: body mass index higher than 35 kg/m2, history of psychiatric disorders, severe depression or recent stressful life events, alcohol or substance abuse, a trans-meridian flight during last 6 weeks, diuretics use and hormone replacement therapy, including renal failure,acute heart failure, restless legs syndrome and acute apnea. 46 subjects randomly will be allocated into the magnesium or the placebo group and receiving 250 mg magnesium oxide or placebo twice daily for 8 weeks. In order to evaluate the effect of supplementation, insomnia severity index, sleep time, total serum magnesium, serum renin, serum cortisol, serum melatonin will be measured at baseline and after the intervention period.