Resources, such as nitrogen, are widely hypothesized to underlie the expression and evolution of plant defenses to herbivory. However, resource availability can affect selection on plant defense traits in contrasting ways: resource availability can 1) weaken selection on defense traits by reducing the costs of herbivory, or 2) strengthen selection on defense traits by increasing herbivore pressure. Previous studies have compared herbivore resistance in populations across natural resource gradients to infer how resource availability affects the microevolution of plant defenses. However, because these studies do not manipulate resource availability, they are unable to directly test the effects of resources of plant defense trait evolution. We used a three-decade-long nitrogen fertilization field experiment to test how nitrogen availability affects the evolution of an architectural plant defense trait: stem nodding in Solidago altissima. Stem nodding is a genetic dimorphism that helps plants to evade apex-galling herbivores. By comparing the frequency of defensive nodding versus erect morphs in experimentally fertilized or unfertilized plots, we assessed how nitrogen addition affects the evolution of this defense trait. We found that the defensive nodding morph was 3-4 times more common in plots that evolved under nitrogen fertilization compared to those that evolved in unfertilized control plots. This study provides empirical evidence for resource availability driving plant defense evolution and demonstrates that this evolution can occur on time-scales conducive to study at many long-term nutrient fertilization experiments.