Lefebvre in a 12-hour battle after a downhill charge. The Tyroleans retook Innsbruck. Hofer declared himself Imperial Commandant of the Tyrol in the absence of the ruler and for two months ruled the land from Hofburg in the name of the Emperor of Austria. He announced new laws and taxes and minted his own coins. He also sent two men to Britain to ask for assistance. On 29 September he received a medal from the emperor and another promise that Austria would not abandon Tyrol. Hofer's hopes were dashed on 14 October, when the Treaty of Schönbrunn again ceded Tyrol to Bavaria. French and Bavarian troops advanced and Hofer retreated to the mountains. Promised amnesty, Hofer and his followers laid down their weapons on 8 November. Hofer retired to his home valley. Final attempt and capture On 12 November Hofer received false reports of Austrian victories and tried to summon his troops on 15 November. This time he had little following and French troops defeated his forces. His subordinate commanders surrendered and urged him to escape over the mountains. Hofer hid in a hut in the mountains in the Passeiertal and the French announced a reward of 1500 guilders for his head. His neighbor Franz Raffl betrayed him and revealed his hiding place to the authorities. Hofer was captured by Italian troops on 28 January 1810 and was sent to Mantua in chains to face a court-martial. (Raffl died impoverished in Bavaria twenty years later.) Court martial and execution Officers holding the court martial disagreed on the exact sentence until they received a message from Milan. It was supposedly from the Viceroy, transmitting Napoleon's order to "give him a fair trial and then shoot him." Later Napoleon claimed to Prince Metternich that Hofer was executed against his wishes. Andreas Hofer was executed by a firing squad on 20 February 1810. He refused a blindfold or to kneel, and gave money to a corporal in charge, telling him to "shoot straight". He gave the order to fire himself. Hofer became a martyr in Germany and Austria and a rallying symbol against the power of Napoleon. Legacy and monuments In 1809 William Wordsworth wrote some sonnets to Andreas Hofer which contributed to the romanticisation of his image and the legend surrounding the insurrection. In 1818, his family was given a patent of nobility by the emperor of Austria (he and Anna had