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.