The military history of the Teutonic Knights was to be ended in 1805 by the Article XII of the Peace of Pressburg, which ordered the German territories of the Knights converted into a hereditary domain and gave the Austrian Emperor responsibility for placing a Habsburg prince on its throne. These terms had not been fulfilled by the time of the Treaty of Schönbrunn in 1809, and therefore Napoleon Bonaparte ordered the Knights' remaining territory to be disbursed to his German allies, which was completed in 1810.