This article considers the social problem of violence and the alternative of resolution through cooperation and compassion from the perspective of cognitive neuroscience. Violence is a social problem, the manifestations of which have a biological basis reflected in the development of aggression and the neural mechanisms that regulate it. Cooperation and compassion are two forms of behaviour with similar developmental, cognitive and cerebral regulatory bases to the mechanisms activated in violence, even though they result in radically different forms of behaviour. The article examines violence and compassion as two mechanisms that lead to moral action that depends on whether sociocultural contexts are adverse or favourable to human well-being. It concludes that the neuro-cognitive system is a flexible and adaptable mechanism that regulates behaviour directly, according to the sociocultural context in which individuals live. Against that background, the UNESCO Declarations on the culture of peace refer to concepts relating to cognition or the human mind. Cognitive neuroscience therefore provides tools for creating and changing mental concepts that could eventually enable human beings to live together in peace.