 Complete the following phrase:  The War of the Third Coalition lasted from about 1803 to 1806. Following defeat at the Battle of by the French under Napoleon in December 1805, Holy Roman Emperor Francis II abdicated, and the Empire was dissolved on 6 August 1806. The resulting Treaty of established the Confederation of the Rhine in July 1806, joining together sixteen of Frances allies among the German states including Bavaria and . After the Battle of of October 1806 in the War of the Fourth Coalition, various other German states, including Saxony and Westphalia, also joined the Confederation. Only Austria, Prussia, Danish , Swedish Pomerania, and the French-occupied Principality of Erfurt stayed outside the Confederation of the Rhine. The 