Adenomyosis
The endometrium is the lining of the womb that builds up every month in preparation for pregnancy. If there is no pregnancy the lining is shed (your period) and the process starts again.
Adenomyosis is where the endometrial cells grow in the muscle of the womb, again leading to a lot of pain around the time of the period.