Unlike other snakes, most species ofRhabdophispossess glands in their dorsal skin, sometimes limited to the neck, known as nucho-dorsal and nuchal glands, respectively. Those glands contain powerful cardiotonic steroids known as bufadienolides, which can be deployed as a defense against predators. Bufadienolides otherwise occur only in toads (Bufonidae) and some fireflies (Lampyrinae), which are known or believed to synthesize the toxins. The ancestral diet ofRhabdophisconsists of anuran amphibians, and we have shown previously that the bufadienolide toxins of frog-eating species are sequestered from toads consumed as prey. However, one derived clade, theRhabdophis nuchalisGroup, has shifted its primary diet from frogs to earthworms. Here we confirm that the worm-eating snakes possess bufadienolides in their nucho-dorsal glands, although the worms themselves lack such toxins. In addition, we show that the bufadienolides ofR. nuchalisGroup species are obtained primarily from fireflies. Although few snakes feed on insects, we document through feeding experiments, chemosensory preference tests, and gut contents that lampyrine firefly larvae are regularly consumed by these snakes. Furthermore, members of theR. nuchalisGroup contain compounds that resemble the distinctive bufadienolides of fireflies, but not those of toads, in stereochemistry, glycosylation, acetylation, and molecular weight. Thus, the evolutionary shift in primary prey among members of theR. nuchalisGroup has been accompanied by a dramatic shift in the source of the species’ sequestered defensive toxins.