Ginger, a well-known spice plant, has been used widely in medicinal preparations for pain relief. However, little is known about its analgesic components and the underlying mechanism. Here, we ascertained, the efficacy of ginger ingredient 8-Shogaol (8S), on inflammatory pain and tolerance induced by morphine, and probed the role of TRPV1 in its analgesic action using genetic and electrophysiology approaches. Results showed that 8S effectively reduced nociceptive behaviors of mice elicited by chemical stimuli, noxious heat as well as inflammation, and antagonized morphine analgesic tolerance independent on opioid receptor function. Genetic deletion of TRPV1 significantly abolished 8S’ analgesia action. Further calcium imaging and patch-clamp recording showed that 8S could specifically activate TRPV1 in TRPV1-expressing HEK293T cells and dorsal root ganglion (DRG) neurons. The increase of [Ca2+]i in DRG was primarily mediated through TRPV1. Mutational and computation studies revealed the key binding sites for the interactions between 8S and TRPV1 included Leu515, Leu670, Ile573, Phe587, Tyr511, and Phe591. Further studies showed that TRPV1 activation evoked by 8S resulted in channel desensitization both in vitro and in vivo, as may be attributed to TRPV1 degradation or TRPV1 withdrawal from the cell surface. Collectively, this work provides the first evidence for the attractive analgesia of 8S in inflammatory pain and morphine analgesic tolerance mediated by targeting pain-sensing TRPV1 channel. 8S from dietary ginger has potential as a candidate drug for the treatment of inflammatory pain.