If dysmenorrhea affects your sleep at night, you can take appropriate anti-inflammatory and pain-relieving drugs, such as ibuprofen and nimesulide, which can effectively relieve the symptoms of dysmenorrhea. If primary dysmenorrhea affects normal life, sleep and work, you can take anti-inflammatory and pain-relieving drugs, pay attention to abdominal warmth during menstruation, and appropriate local hot compresses and massage can help a lot to relieve dysmenorrhea. If the dysmenorrhea is secondary and affects normal sleep, you need to go to the hospital for relevant examination. Secondary dysmenorrhea, considered to be caused by endometriosis, adenomyosis, it is recommended to go to the hospital for relevant examinations, after diagnosis, timely symptomatic treatment, with fertility requirements is recommended to prefer surgery, does not affect normal fertility, no fertility requirements can choose to take oral drugs for conservative treatment.