Ibuprofen acts as a common over-the-counter medication used to relieve pain and inflammation. That belongs to a class of drugs known as noncopyrightal anti-inflammatory drugs or NSAIDs. Ibuprofen works by blocking the production of prostaglandins, which represent chemicals in the body that cause pain and swelling. Typical uses for ibuprofen include