Extreme pain during periods is known as dysmenorrhea. There are two types: primary and secondary dysmenorrhea.
Primary dysmenorrhea refers to pain as a direct result of a person's period, while secondary dysmenorrhea refers to pain during a period because of a medical condition such as endometriosis.