Invasive thistles reduce the productivity of pastures and rangelands because their structural defenses make them unpalatable to grazing livestock. However, plants potentially alter their growth patterns, including their allocation of resources to defense, in response to the presence of competing vegetation. Understanding the effects of competition on the structural defense of problematic pasture weeds can inform management plans that reduce the economic harm caused by these pests. We grew musk thistle (Carduus nutans L., also commonly called nodding thistle) in a fully crossed factorial field experiment in a single abandoned pasture in 2017 with two experimental factors: the level of thistle infestation (1 thistle or 5, resulting in densities of 4 or 20 plants m−2) and the presence or absence of grazing (simulated by weekly trimming of competing vegetation). We assessed the effects of treatments on defense by counting prickles >3-mm long on leaves. Our analysis included leaf age and leaf size as covariates. Competition reduced the number of prickles present on leaves. Regression analysis showed that an increase from, for example, 50 g to 200 g of competing vegetation within 50 by 50 cm study plots reduced the expected average number of prickles on intermediate-aged leaves with average length 25.5 cm by 76.9 prickles per leaf, or 41%. This pattern was similar for leaves of all ages, although the oldest leaves generally had fewer prickles than younger leaves. We did not observe differences in defense structures between plants neighbored by conspecifics and those neighbored by other competitors. Carduus nutans has been previously managed using high densities of grazers, and this practice may be more likely to damage less-defended individuals such as those we observed in our treatments with competition. This finding suggests that maintaining competition in pastures may increase C. nutans vulnerability to grazing.