Ibuprofen is a nonsteroidal anti-inflammatory drug available in both prescription and nonprescription forms.