Nonsteroidal anti-inflammatory drugs (NSAIDs, such as Advil or Motrin, which are types of ibuprofen, and Aleve, a type of naproxen, as well as their stronger prescription forms), treat pain and inflammation systemically (throughout the body). Aminosalicylates are also anti-inflammatory drugs that work topically (where they are applied). While they have some crossover in their mechanism of action, they are different classes of drugs.