The Franco-Prussian War of 1870-1871 set the French Third Republic — the Second Empire until its fall — against the Kingdom of Prussia at the head of the North German Confederation and the south German states. Bismarck used the Spanish succession to provoke France's declaration of war in July 1870; the southern states fought at once under their treaties, and Prussian mobilization by rail with breech-loaders and Krupp guns encircled the French main army at Sedan within the month — Napoleon III taken prisoner, the revolution of 4 September proclaiming the Third Republic in Paris as the empire fell. The Prussian armies besieged Paris for four months; on 18 January 1871 William I was proclaimed German emperor in the Hall of Mirrors at Versailles, the unification of Germany complete, and the German Empire stood at once as the continent's leading power. The new republic signed the Treaty of Frankfurt: most of Alsace and northern Lorraine ceded, an indemnity of five billion francs. Defeat lit the Paris Commune rising of March-May 1871 — the world's first attempt at a workers' state. The war left the Franco-German feud: the lost land and the indemnity drove French diplomacy for decades, Bismarck's system and the European balance dated from its close, and the European order built since the Napoleonic Wars was rewritten.