The leaves of cucumbers prevent infestation by beetles by releasing a chemical that mimics that of female beetles, disorienting the males.

“Under normal conditions, for example, a young cucumber plant can disorient many of the small beetles that live on its leaves. The male beetles need to find mates at one time or another in the summer and, being short-sighted, they do so by sniffing for the distinctive chemical cloud which a female of their species produces. A healthy cucumber–one that’s well spaced from its fellow plants—is quite capable of producing a cunning duplicate of that chemical. It sprays the stuff out all around the male beetle. The insect turns about in place, desperately trying to find the true location of its mate in the rising haze. The male fails to find her, or at least gets delayed, and the cucumber is less likely to be chewed by hordes of baby beetles.” (Bodanis 1992:81)

Last Updated August 18, 2016