After Napoleon's military fiasco in Russia in 1812, Prussia allied with Russia in the Sixth Coalition. A series of battles followed and Austria joined the alliance. Napoleon was decisively defeated in the Battle of Leipzig in late 1813. The German states of the Confederation of the Rhine defected to the Coalition against Napoleon, who rejected any peace terms. Coalition forces invaded France in early 1814, Paris fell and in April Napoleon surrendered. Prussia as one of the winners at the Congress of Vienna, gained extensive territory.