Complex patterns in tolerance and resistance to pests and diseases underpin the domestication of tomato.