Ibuprofen is a NSAID drug commonly taken to lessen pain and inflammation . The belongs to the family of medicines called NSAIDs , and works by blocking the release of prostaglandins , which are responsible for creating pain and swelling . Patients often find ibuprofen effective for conditions such as migraines , muscle strains, menstrual discomfort