Diclofenac patches work by delivering the active ingredient, diclofenac, directly to the affected area. Diclofenac inhibits the enzyme cyclooxygenase (COX), which is involved in the synthesis of prostaglandins - compounds that mediate inflammation and pain. By blocking COX, diclofenac reduces the levels of prostaglandins, thereby alleviating pain and inflammation.