 In 1641, Kecskemét paid homage to Leopold I's Palatine, Nikolaus Esterházy, by awarding him one of its rugs.In 1662, the city became home to a large colony of Greeks who fled Ottoman repression.The long series of Habsburg expeditions weakened the Ottoman Empire and forced its military out of Hungary-proper.