In wild tomato leaves, a tiny change in molecular shape may help fend off one of the crop’s most damaging pests: the tomato leafminer, Phthorimaea absoluta. Researchers found that a natural defense substance called filotomatine offers stronger protection against the insect than the closely related compound common in cultivated tomatoes.

The finding helps explain why wild tomato species can be more resistant to the leafminer than farmed varieties. It also points to a possible route for breeding tomatoes that can better withstand pests. The study, published in Nature Communications, shows that a plant’s defenses can depend not just on which chemicals it makes, or how much, but on the exact three-dimensional shape of those chemicals.

The research focused on steroidal glycoalkaloids, natural compounds made by plants in the Solanum genus, which includes tomatoes, potatoes and eggplants. These substances help protect plants from insects that eat them and from some disease-causing organisms. In cultivated tomatoes, Solanum lycopersicum, one of the main glycoalkaloids in the leaves is α-tomatine. In wild tomatoes, Solanum pennellii, filotomatine is more common.

The two compounds contain the same sugars, but their molecular cores have different spatial arrangements. Researchers tested what that difference meant for the pest, both in experiments with plants and in laboratory feeding tests. In the latter, leafminers were given an artificial diet containing one compound at a time. This let the team compare the chemicals directly, without other differences between plants affecting the result. Filotomatine provided greater protection than α-tomatine in both types of test.

The team also traced how the difference arises. By changing four amino acids in a single enzyme, the researchers could alter the structure of the defense molecule and increase its toxicity to the leafminer. Amino acids are the building blocks of proteins, including enzymes, which help chemical reactions happen in living things. The result links a small genetic change to a different molecular form and, in turn, to a stronger effect on the insect.

The international study was coordinated by Jiancai Li, a professor at the Shanghai Institute of Plant Physiology and Ecology and the University of the Chinese Academy of Sciences in Beijing. José Maurício Simões Bento, a professor at the Luiz de Queiroz College of Agriculture at the University of São Paulo, also took part. Li’s team studies plant genetics and the production of specialized chemicals, while Bento’s group studies how plants and insects interact.

The researchers do not yet know the exact target of these glycoalkaloids inside the insect. Li said one likely explanation is that biological targets can recognize one molecular shape better than another, much as a key fits one lock more closely than another. The discovery gives breeders a more precise lead: gene editing could potentially adjust the enzyme that shapes the defense compound. More work will be needed to turn that insight into resistant crop varieties, but the study shows how a subtle change in a plant’s chemistry can matter in the field.