The German Empire is the German state from its unification in 1871 to the end of World War I in 1918.