The evolution of behaviors that benefit the group rather than the individual, such as altruism or cooperation.