The settlement in the Kingdom of Hungary was first mentioned about 1270, it was completely devastated during the Ottoman Siege of Buda in 1541. In the aftermath of the Ottoman defeat at the 1683 Battle of Vienna, the depopulated area was re-settled with "Danube Swabian" (most of them actually descending from Lorraine, the Palatinate and Alsace) immigrants by the order of the Habsburg King Leopold I. Budakeszi was for centuries a predominantly "Schwabian" (ethnic German) village.