In 1541, Buda was conquered by the Turks in the siege of Buda, and was under Ottoman rule for the next 145 years.