The German colonial empire constituted the overseas colonies, dependencies and territories of Imperial Germany. Short-lived attempts of colonization by individual German states had occurred in preceding centuries, but crucial colonial efforts only began in 1884 with the Scramble for Africa. Most of Germany's colonies were occupied by its enemies in the first weeks of World War I, German South-West Africa surrendered in 1915, Kamerun in 1916 and German East Africa only in 1918 by end of the war. Germany's colonial empire was officially confiscated with the Treaty of Versailles after her defeat in the war.