An enduring question in evolutionary biology concerns the degree to which episodes of convergent trait evolution depend on the same genetic programs, particularly over long timescales. Here we genetically dissected repeated origins and losses of prickles, sharp epidermal projections, that convergently evolved in numerous plant lineages. Mutations in a cytokinin hormone biosynthetic gene caused at least 16 independent losses of prickles in eggplants and wild relatives in the genusSolanum. Strikingly, homologs promote prickle formation across angiosperms that collectively diverged over 150 million years ago. By developing newSolanumgenetic systems, we leveraged this discovery to eliminate prickles in a wild species and an indigenously foraged berry. Our findings implicate a shared hormone-activation genetic program underlying evolutionarily widespread and recurrent instances of plant morphological innovation.