Madagascar–South Africa relations fight against apartheid. Radio Freedom was operated by South African freedom fighters in Madagascar between 1979 and 1993. In June 1991, apartheid legislation was repealed in South Africa and Nelson Mandela was elected President in May 1994. That same year, Madagascar and South Africa officially established diplomatic relations. During the 2009 Malagasy political crisis, Malagasy President Marc Ravalomanana fled to South Africa where he remained in exile for the next 5 years. In August 2012, South African President Jacob Zuma traveled to the Seychelles to assist in brokering a deal between Madagascar's President Andry Rajoelina and Marc Ravalomanana. In January
Brazil–South Africa relations strong relationship with the apartheid-era government, and instead developed ties with the allies of such anti-apartheid organizations such as ANC and SWAPO. After South Africa held its first multiracial elections in 1994, president Fernando Henrique Cardoso became the first Brazilian head of state to visit South Africa in 1996. Relations developed quickly between the two countries, especially after the election of Luiz Inácio Lula da Silva as president in 2002. Lula's government has developed strong ties with Thabo Mbeki's government in South Africa, particular in the areas of AIDS/HIV, fair trade, reform in the United Nations Security Council, land reform,