Two years after the Union of South Africa was formed, Smuts created the Union Defence Force (UDF). He led the UDF and was instrumental in the conquest of German South-West Africa and German East Africa during World War I. In 1917, Smuts was invited to join the Imperial War Cabinet. In 1918, Smuts helped created the Royal Air Force.