This commentary reviews the neural processes underpinning the learning of social norms, as well the enforcement of these norms through second-party and third-party punishment. The authors suggest how these structures may have formed during our evolutionary history.