Topical medications work by being absorbed through the skin and directly affecting abnormal cells. 5-Fluorouracil (5-FU), for instance, inhibits DNA synthesis in rapidly dividing cancer cells, leading to cell death. Imiquimod stimulates the immune system to attack cancerous cells, while diclofenac reduces inflammation and may interfere with cancer cell growth.