It is theorized that the possession of a venomous sting was important in the repeated evolution of eusociality within Hymenoptera.
The idea is that having a poisonous stinger was essential for the repeated evolution of social behavior within Hymenoptera.