Kassa became a centre of the Counter-Reformation. In 1657, a printing house and university were founded by the Jesuits, funded by Emperor Leopold I. The 1664 Peace of Vasvár at the end of the Austro-Turkish War (1663-1664) awarded Szabolcs and Szatmár counties to the Habsburgs, which put Kassa further inside the border of Royal Hungary again. A modern pentagonal fortress (citadel) was built by the Habsburgs south of the city in the 1670s. The city was besieged by Kuruc armies several times in the 1670s, and it revolted against the Habsburg emperor. The rebel leaders were massacred by the emperor's soldiers on November 26, 1677.