At the onset of World War I, the Union of South Africa participated in the invasion and occupation of several Allied territories taken from the German Empire, most notably German South-West Africa and German East Africa (Tanzania). Germany's defeat forced the new Weimar Republic to cede its overseas possessions to the League of Nations as mandates. A mandate over South-West Africa was conferred upon the United Kingdom, "for and on behalf of the government of the Union of South Africa", which was to handle administrative affairs under the supervision of the league. South-West Africa was classified as a "C" mandate, or a territory whose population sparseness, small size, remoteness, and geographic continuity to the mandatory power allowed it to be governed as an integral part of the mandatory itself. Nevertheless, the League of Nations obliged South Africa to promote social progress among indigenous inhabitants, refrain from establishing military bases there, and grant residence to missionaries of any nationality without restriction. Article 7 of the South-West Africa mandate stated that the consent of the league was required for any changes in the terms of the mandate.