Following the establishment of the First French Empire in 1804, the Holy Roman Emperor Francis II proclaimed the establishment of the Austrian Empire under the rule of the Habsburg Monarchy. Following the Austrian defeat at the Battle of Austerlitz in 1806, the Holy Roman Empire was dissolved and replaced with the Confederation of the Rhine, a French client state. In 1813, this too was dissolved in the wake of the French defeat at the Battle of Leipzig and in the ensuing German campaign, Austria united with a number of German states as part of the German Confederation, though it retained rule over territories outside of the confederation - in Hungary, Croatia, Bohemia, Galicia–Lodomeria and Lombardy–Venetia.