Nonsteroidal anti-inflammatory drugs (NSAIDs) are a class of medications widely used to relieve pain, reduce inflammation, and lower fever. Common examples include ibuprofen, aspirin, and naproxen. These drugs function by inhibiting the activity of cyclooxygenase (COX) enzymes, which play a crucial role in the synthesis of prostaglandins, compounds involved in inflammation and pain signaling.