Over-the-counter (OTC) medications are drugs that you can buy without a doctor's prescription. Nonsteroidal anti-inflammatory drugs (NSAIDs) are drugs that help reduce inflammation, which often helps to relieve pain.