Inhibits prostaglandin synthesis in the central nervous system, providing pain relief and reducing fever.