Analgesic gels work by penetrating the skin to deliver pain-relieving compounds directly to the site of discomfort. The active ingredients in these gels interact with pain receptors and reduce inflammation, providing relief. For instance, menthol works by creating a cooling sensation that temporarily distracts the brain from pain signals, while NSAIDs like ibuprofen reduce inflammation and swelling.