Soil bacterial communities are involved in multiple ecosystem services, key in determining plant productivity. Crop domestication and intensive agricultural practices often disrupt species interactions with unknown consequences for rhizosphere microbiomes. This study evaluates whether variation in plant traits along a domestication gradient determines the composition of root-associated bacterial communities; and whether these changes are related to targeted plant traits (e.g., fruit traits) or are side effects of less-often-targeted traits (e.g., resistance) during crop breeding. For this purpose, 18 tomato varieties (wild and modern species) differing in fruit and resistance traits were grown in a field experiment, and their root-associated bacterial communities were characterised. Root-associated bacterial community composition was influenced by plant resistance traits and genotype relatedness. When only considering domesticated tomatoes, the effect of resistance on bacterial OTU composition increases, while the effect due to phylogenetic relatedness decreases. Furthermore, bacterial diversity positively correlated with plant resistance traits. These results suggest that resistance traits not selected during domestication are related to the capacity of tomato varieties to associate with different bacterial groups. Taken together, these results evidence the relationship between plant traits and bacterial communities, pointing out the potential of breeding to affect plant microbiomes.