Painkillers. A group of painkillers known as non-steroidal anti-inflammatory drugs (NSAIDs) are often used to treat period pain, as well as endometriosis. These painkillers include ibuprofen, diclofenac and acetylsalicylic acid (ASA – the drug in medicines like Aspirin).