In 1988, South Africa, Angola, and Cuba signed a Tripartite Accord committing them to peace. Cuba agreed to withdraw from Angola if South Africa withdrew from South-West Africa and granted that territory independence. South-West Africa gained independence as Namibia in early 1990.