After 1529, resistance to John I in Transylvania was broken in a series of small campaigns. For instance, the last Transylvanian magnate to side with Ferdinánd I, Stephen Majláth went over to John I in early 1532, and Sibiu was occupied in 1536. On February 24, 1538, a secret pact was signed in Oradea by the representatives of the two kings of Hungary. According to the treaty, both rulers were allowed to retain the territories which they then held, but the childless John I promised to recognize the Habsburgs' succession.