...like this huisache. Like many
of the common Scrub plants, it's in the bean family.
Its beans, and those of other plants, provide food
for many animals. But naturally it doesn't want
to have its stems eaten, so it has sharp thorns
to discourage plant-eaters from doing that.