Although both persistent itch and inflammation are commonly associated with allergic contact dermatitis (ACD), it is not known if they are mediated by shared or distinct signaling pathways. Here we show that both TRPA1 and TRPV1 channels are required for generating spontaneous scratching in a mouse model of ACD induced by squaric acid dibutylester (SADBE), a small molecule hapten, through directly promoting the excitability of pruriceptors. TRPV1 but not TRPA1 channels protect the skin inflammation, as genetic ablation of TRPV1 function or pharmacological ablation of TRPV1-positive sensory nerves promotes cutaneous inflammation in the SADBE-induced ACD. Our results demonstrate that persistent itch and inflammation are mediated by distinct cellular and molecular mechanisms in a mouse model of ACD. Identification of distinct roles of TRPA1 and TRPV1 in regulating itch and inflammation may provide new insights into the pathophysiology and treatment of chronic itch and inflammation in ACD patients.