Ibuprofen is a NSAID medication commonly taken to lessen discomfort and swelling . The belongs to the family of medicines called anti-inflammatory agents, and operates by inhibiting the synthesis of hormone-like substances , which are responsible for creating pain and inflammation . Patients ofte