In 1991, the UN created the "National Peace Accord". The purpose of the Peace Accord was "to bring an end to political violence" in South Africa. It was agreed on by 27 organisations and governments. After this the "Convention for a Democratic South Africa" (CODESA) was formed. CODESA worked to find a solution to the violence.