During World War I, South African troops under General Louis Botha occupied the territory and deposed the German colonial administration. The end of the war and the Treaty of Versailles resulted in South West Africa remaining a possession of South Africa as a League of Nations mandate until 1990. The mandate system was formed as a compromise between those who advocated for an Allied annexation of former German and Turkish territories and a proposition put forward by those who wished to grant them to an international trusteeship until they could govern themselves. It permitted the South African government to administer South West Africa until that territory's inhabitants were prepared for political self-determination. South Africa interpreted the mandate as a veiled annexation and made no attempt to prepare South West Africa for future autonomy.