Punishment is sometimes called retaliatory or moralistic aggression; it has been observed in all species of social animals, leading evolutionary biologists to conclude that it is an evolutionarily stable strategy, selected because it favors cooperative behavior.
