Ibuprofen is a common over-the-counter medication used to relieve pain and inflammation. This belongs to a class of drugs known as noncopyrightal anti-inflammatory drugs or NSAIDs. Ibuprofen operates by blocking the production of prostaglandins, which are chemicals in the body that cause pain and swelling. Usual uses for ibuprofen include headaches