 When John XXIII was declared an antipope, he fled the city with Frederick's help.The emperor then declared the Habsburg lands forfeited and ordered the neighboring countries to conquer those lands for the emperor.The city-state of Bern had already pledged their support of the emperor against the Habsburgs in 1414, and so they were ready to invade.