In total, Napoleon and the Grande Armée had taken only 19 days from the commencement of the invasion of Prussia until essentially knocking it out of the war with the capture of Berlin and the destruction of its principal armies at Jena and Auerstedt. Most of the shattered remnants of the Prussian army (and the displaced royal family) escaped to refuge in Eastern Prussia near Königsberg, eventually to link up with the approaching Russians and continue the fight. Meanwhile, Saxony was elevated to a kingdom on 11 December 1806 upon allying with France and joining the Confederation of the Rhine, thereby leaving the Allied Coalition.