Dysmenorrhea refers to painful periods and is divided into primary and secondary categories. Primary dysmenorrhea involves painful cramps without an identifiable medical cause, while secondary dysmenorrhea is due to conditions like endometriosis. Prostaglandins released during menstruation cause uterine contractions and pain. Symptoms include lower abdominal pain that may radiate to the back or thighs. Treatment focuses on pain relief using NSAIDs, oral contraceptives, heat therapy, and lifestyle changes. For secondary dysmenorrhea, treating the underlying condition is also important.