Patch testing is a diagnostic tool used in toxicology and dermatology to identify substances that may cause an allergic reaction when they come into contact with the skin. It involves applying small amounts of potential allergens to the skin under occlusive patches, typically on the back, for a specified period. The primary goal is to diagnose contact dermatitis and to determine specific allergens responsible for allergic reactions.