Malacky (German: Malatzka, Hungarian: Malacka) is a town and municipality in western Slovakia around 35 kilometres (22 miles) north from capital Bratislava. From the second half of the 10th century until 1918, it was part of the Kingdom of Hungary. It is one of the centres of the region "Záhorie", between the Little Carpathians in the east and Morava River in the west and a cultural and economic hub for nearby villages such as Gajary, Kostolište, Veľké Leváre and Jakubov.