It blocks the COX-2 enzyme, resulting in a reduction in the production of prostaglandins, substances that are involved in processes such as inflammation and the activity of smooth muscle (muscle that performs automatic tasks such as the opening and closing of blood vessels).