Diclofenac is a nonsteroidal anti-inflammatory drug used to treat pain and inflammatory diseases such as gout. It is taken by mouth or rectally in a suppository, used by injection, or applied to the skin. Improvements in pain last for as much as eight hours.