From 1440 Archduke Albert VI of Austria held the town as collateral for a loan. In 1451, Matthias Corvinus ceded it to Frederick III, Holy Roman Emperor in return for the Holy Crown of Hungary. Matthias Corvinus reconquered it by force in 1482, but Maximilian I acquired it again in 1490. It remained under Habsburg rule until 1622; however, the Ottoman Empire briefly conquered Kismarton in 1529 and 1532 during their advances on the city of Vienna (see Ottoman wars in Europe). It was destroyed by fire in 1589.