Anyone know what kind of tree this is?

Interesting trunk has defensive spikes going up over 4 feet. Didn’t see any fruit, what is it protecting?  It’s almost prehistoric looking. This one’s near the new Science Museum.