Ibuprofen is used for the treatment of mild-to-moderate pain and inflammation caused by a variety of conditions such as arthritis, headache, back pain, menstrual cramps, and toothache. Ibuprofen belongs to a class of drugs called non-steroidal anti-inflammatory drugs (NSAIDs). This medicine works by reducing the pain-causing hormones in the body.