Ophthalmic nepafenac is used to treat eye pain, redness, and swelling in patients who are recovering from cataract surgery (procedure to treat clouding of the lens in the eye). Nepafenac is in a class of medications called nonsteroidal anti-inflammatory drugs (NSAIDs).