At the beginning of the War of the Fifth Coalition on 9 April 1809, the armies of the Austrian Empire invaded the Kingdom of Bavaria, an ally of the First French Empire, and the Kingdom of Italy, a French satellite. After Austria's defeat in the War of the Third Coalition the County of Tyrol and the Vorarlberg were ceded to Bavaria in the Fourth Peace of Pressburg on 26 December 1805. Angry at the imposition of Bavarian laws and conscription, the Tyrolese rebelled in support of Austria. During the first week, local irregular forces killed or captured the main Bavarian garrison and also forced a French force to capitulate. To assist the Tyrolean Rebellion, the Austrian high command sent a regular division into the Tyrol under the leadership of Feldmarschallleutnant Johann Gabriel Chasteler de Courcelles. The VII Corps, consisting of three Bavarian divisions under the overall command of Marshal François Joseph Lefebvre, invaded the Tyrol in mid-May. On 11 May, Lieutenant General Bernhard Erasmus von Deroy relieved the besieged Kufstein Fortress. Lieutenant General Karl Philipp von Wrede crushed Chasteler's division on 13 May at the Battle of Wörgl. Soon afterward, Lefebvre occupied Innsbruck. However, Deroy's division was attacked on 25 May and 29 May in the first two Battles of Bergisel and compelled to evacuate the Tyrol. By this time Chasteler's surviving regular troops were recalled to join the Army of Inner Austria, which was retreating toward Hungary. Only a handful of regulars were left to operate in the Tyrol. Soon after Emperor Napoleon I of France defeated the main Austrian army at the Battle of Wagram on 5 and 6 July, Austria sued for peace. However, the revolt in the Tyrol continued and the Bavarians invaded the region a second time in late July. After the insurgents beat Deroy at the Third Battle of Bergisel on 13 August, the Bavarians again withdrew. In the third invasion, the Bavarian 1st Division under General-Major Rechberg inflicted a bloody defeat on the irregulars on 17 October. Wrede won the Fourth Battle of Bergisel on 1 November and the revolt finally died down. One of the leaders of the rebellion, Andreas Hofer was betrayed to the French and executed in February 1810. Order of battle Austrian Tyrol force Chastler's original force was organized as follows. Tyrol Detachment: Feldmarschallleutnant Johann Gabriel Chasteler de Courcelles 1st Brigade: General-Major Ignaz Peter Marchal Hohenlohe-Bartenstein Infantry Regiment #