Smederevo Fortress was finally surrendered in 1459 to Sultan Mehmet I, which marked the final victory of the Ottoman Turks over Serbian territory. Immediately, the Turks made the castle the headquarters of their pasalik in the region and it remained in Turkish occupation, with the exception of a brief period of Austrian control, until 1805 when Karadorde formally received its keys following his initial successes with the First National Uprising. Having survived the medieval period more or less intact, the fortress suffered considerable damage in far more recent times when a German ammunition depot blew up part of it in 1941 claiming more than 5,000 lives, and then later in 1944 when it was bombed by Allied forces.