In two double blinded randomized controlled trials (RCT) we will study the effect of pain
reduction of melatonin vs placebo in women with severe dysmenorrhea and women with
endometriosis.The aim is to find an effective method for pelvic pain caused by dysmenorrhea
and endometriosis.The primary outcome is reduction of pain in patients with dysmenorrhea and
endometriosis respectively when treated with melatonin vs placebo. Secondary outcomes include
the effect on daily life, quality of life and cognition. Sleep will also be assessed to
evaluate its potential relation to quality of life and cognition.