Bites and stings from venomous creatures can produce pain and inflammation as part of their defensive strategy to ward off predators or competitors. Molecules accounting for lethal effects of venoms have been extensively characterized, but less is known about the mechanisms by which they produce pain. Venoms from spiders, snakes, cone snails or scorpions contain a pharmacopoeia of peptide toxins that block receptor or channel activation as a means of producing shock, paralysis or death. We examined whether these venoms also contain toxins that activate (rather than inhibit) excitatory channels on somatosensory neurons to produce a noxious sensation in mammals. Here we show that venom from a tarantula that is native to the West Indies contains three inhibitor cysteine knot (ICK) peptides that target the capsaicin receptor (TRPV1), an excitatory channel expressed by sensory neurons of the pain pathway. In contrast with the predominant role of ICK toxins as channel inhibitors, these previously unknown `vanillotoxins' function as TRPV1 agonists, providing new tools for understanding mechanisms of TRP channel gating. Some vanillotoxins also inhibit voltage-gated potassium channels, supporting potential similarities between TRP and voltage-gated channel structures. TRP channels can now be included among the targets of peptide toxins, showing that animals, like plants (for example, chilli peppers), avert predators by activating TRP channels on sensory nerve fibres to elicit pain and inflammation.