After the end of World War I, the era of monarchy in Germany ended, Wilhelm II abdicated and fled to the Netherlands in 1918. Potsdam eventually lost its status as a provincial capital, and Germany became a republic.