The Hungarians had thrown off Turkish rule by 1688