In 1456, during the Thirteen Years' War, the Order – facing opposition from its cities for raising taxes to pay ransoms for expenses associated with its wars against Kingdom of Poland – could no longer manage financially. Meanwhile, Polish General Stibor de Poniec of Ostoja raised funds from Danzig for a new campaign against them. Learning that the Order's Bohemian mercenaries had not been paid, Stibor convinced them to leave. He reimbursed them with money raised in Danzig. Following the departure of the mercenaries, King Casimir IV Jagiellon entered the castle in triumph in 1457, and in May, granted Danzig several privileges in gratitude for the town's assistance and involvement in the Thirteen Years' War (1454–66) as well as for the funds collected for the mercenaries that left.