The city was under martial law under the command of Karl von Thüngen. The Viennese court wanted to destroy the city first, but later they decided to keep it to counterbalance the importance of Szigetvár, which was still under Ottoman rule. Slowly the city started to prosper again, but in the 1690s two plague epidemics claimed many lives. In 1688 German settlers arrived. Only about one-quarter of the city's population was Hungarian, the others were Germans or Southern Slavs. Census of taxpayers from 1698 lists 637 families for which Janja Živković Mandić concludes that 308 were of Croatian nationality (Catholics Croats, Racs, Šokci, Bunjevci, Illyrians, Slavs, Bosniaks) and the remaining 329 were Hungarians, Germans, Serbs or Greeks. According to same census István Tabo mentions 171 Hungarian, 349 Slavs and 79 Germans while Đuro Šarošac mentions that at that time in the city lived 325 Croats, 139 Hungarians, 92 Germans, 53 Vlachs and 28 Serbs. According to 1698 data, South Slavs comprised more than half of the population of the town. Because Hungarians were only a minority of the population, Pécs did not support the revolution against Habsburg rule led by Francis II Rákóczi, and his armies pillaged the city in 1704.