initially, in august 1672 the kuruc army invaded upper hungary where they conquered the castles of diósgyőr, ónod, szendrő and tokaj. after they defeated the habsburg army of paris von spankau near kassa the towns of upper hungary surrendered and many disaffected people joined them from the slovak and ruthenian population of the northern counties.