section_path: Government and politics/Foreign relations
section_name: Foreign relations
paragraph_text: Foreign relations
  
  As the Union of South Africa, the country was a founding member of the United Nations (UN), with Prime Minister Jan Smuts writing the preamble to the UN Charter. South Africa is one of the founding members of the African Union (AU) and has the third largest economy of all the members. It is a founding member of the AU's New Partnership for Africa's Development. After apartheid ended, South Africa was readmitted to the Commonwealth of Nations. The country is a member of the Group of 77 and chaired the organisation in 2006. South Africa is also a member of the Southern African Development Community, South Atlantic Peace and Cooperation Zone, Southern African Customs Union, Antarctic Treaty System, World Trade Organization, International Monetary Fund, G20, G8+5, and the Port Management Association of Eastern and Southern Africa.
  
  South Africa has played a key role as a mediator in African conflicts over the last decade, such as in Burundi, the Democratic Republic of the Congo, Comoros, Mozambique and Zimbabwe.
  
  President Jacob Zuma and Chinese President Hu Jintao upgraded bilateral ties between the two countries in 2010 when they signed the Beijing Agreement which elevated South Africa's earlier "strategic partnership" with China to the higher level of "comprehensive strategic partnership" in both economic and political affairs, including the strengthening of exchanges between their respective ruling parties and legislatures. In 2011, South Africa joined the Brazil-Russia-India-China (BRICS) grouping of countries, identified by Zuma as the country's largest trading partners and also the largest trading partners with Africa as a whole. Zuma asserted that BRICS member countries would also work with each other through the UN, G20, and the India, Brazil South Africa (IBSA) forum.