Aspirin and the other non-steroidal anti-inflammatory drugs (NSAIDs) inhibit cyclooxygenases, leading to a decrease in prostaglandin production. In contrast to paracetamol and the opioids, this reduces not only pain but inflammation as well.