South West Africa

South West Africa (; ; ) was the name used for Namibia when it was ruled by the German Empire and later Union of South Africa and Republic of South Africa.
German colony.
From 1884 to 1915, South West Africa was a German colony under the name of German South West Africa (, DSWA). Germany had a difficult time ruling the territory, and it experienced many insurgencies. The main port city, Walvis Bay, and the Penguin Islands were annexed by Great Britain in 1878 as a part of the Cape Colony, which became a part of the Union of South Africa on 31 May 1910.
South African rule.
In 1915, South Africa captured the German colony. It became a League of Nations Mandate territory, with the Union of South Africa administering it. In 1946, the League of Nations was replaced by the United Nations. The Mandate was supposed to become a Trust Territory when the League of Nations Mandates were transferred to the control of the UN. However, South Africa refused, regarding the territory as its fifth province (even though it was never formally incorporated into the Union of South Africa). In 1966, the United Nation terminated the Mandate and said that South Africa had no right to administer South West Africa any more, but South Africa refused. In 1971, the South African occupation of the territory was illegal and that they should leave, but South Africa still refused.
On 21 March 1990, South Africa granted independence to the territory, which became the Republic of Namibia. However, Walvis Bay and the Penguin Islands only became a part of Namibia in 1994.