The Prussian Confederation, created from dissatisfied subjects (burghers and lay knights) of the Teutonic State, declared its obedience to the Order, which led to the attack on all Teutonic castles at the same time, most of which were captured within a few days. Only two or three castles, including Malbork, were not captured. As long as Malbork remained in the hands of the Teutonic Knights, the war was not won, so the insurgents went to the Polish king Casimir Jagiellon for help.