Figure 3–24. Thorns come from modified stems as seen here on this honey locust tree (Gleditsia triacanthos).
thorns

Doug Culbert, Flickr  CC BY - 2.0