Menstrual cramps can certainly be treated with pills. If the dysmenorrhea is primary, that is, if there is no organic lesion in the reproductive organs, then the pill can be taken to treat it. Since the pill inhibits ovulation and the growth of the endometrium, and also inhibits the levels of prostaglandins and pressin, it can relieve dysmenorrhea, and its therapeutic effect can reach more than 90%, especially for patients who require contraception. If you want to have a baby, you can take prostaglandin inhibitor drugs, commonly used clinically are ibuprofen and ketoprofen, they can mainly inhibit the contraction and spasm of the uterus, reduce the pressure of the uterus, so as to achieve the purpose of treatment. In the case of secondary dysmenorrhea, which is caused by endometriosis and adenomyosis, this condition can be treated by taking high doses of progestin. Since progesterone can inhibit the growth of the endometrium, it can also inhibit the growth of ectopic endometrium, thus relieving the symptoms of dysmenorrhea.