Following Napoleon's Retreat from Moscow in 1812, Prussian forces serving as auxiliaries for the French switched sides and supported Russia. This combined with major uprisings across Prussian territory, forcing French troops to retreat and abandon Berlin. The city then became a major target for the French who attempted to recapture it during the German Campaign of 1813, ending only with the complete French withdrawal following the Battle of Leipzig.