 Pilis was then first mentioned in 1326.It was destroyed during the Ottoman rule in the 16th century, and was reestablished only in 1711, by János Beleznay, the local landlord.He brought Slovak settlers from Upper Hungary, and built a palace in 1717 for himself and his family.