Not only was a large part of the country occupied by Ottomans, the public opinion of who should be the king of Hungary was divided, too. One party supported Ferdinand of Habsburg, the other party crowned John Zápolya in Székesfehérvár. The citizens of Pécs supported Emperor Ferdinand, but the rest of Baranya county supported King John. In the summer of 1527 Ferdinand defeated the armies of Szapolyai and was crowned king on November 3. Ferdinand favoured the city because of their support, and exempted Pécs from paying taxes. Pécs was rebuilt and fortified.