allegiance through Stephen of Moldavia. In seven weeks, they conquered a quarter of Hungary. His mercenaries committed the atrocity of totally sacking Székesfehérvár, the country's main fortress. When encountering the frost, the troops refused to continue the war though, requesting Maximilian to double their pay, which he could not afford. The revolt turned the situation in favour of the Jagiellonian forces. Maximilian was forced to return. He depended on his father and the territorial estates for financial support. Soon he reconquered Lower and Inner Austria for his father, who returned and settled at Linz. Worrying about his son's adventurous tendencies, Frederick decided to starve him financially though. Beatrice of Naples (1457–1508), Mathias Corvinus's widow, initially supported Maximilian out of hope that he would marry her, but Maximilian did not want this liaison. The Hungarian magnates found Maximilian impressive, but they wanted a king they could dominate. The crown of Hungary thus fell to King Vladislaus II, who was deemed weaker in personality and also agreed to marry Beatrice. Tamás Bakócz, the Hungarian chancellor allied himself with Maximilian and helped him to circumvent the 1505 Diet which declared that no foreigner could be elected as King of Hungary. In 1491, they signed the peace treaty of Pressburg, which provided that Maximilian recognized Vladislaus as King of Hungary, but the Habsburgs would inherit the throne on the extinction of Vladislaus's male line and the Austrian side also received 100,000 golden florins as war reparations. It was with Maximilian that the Croatians began to harbour a connection to the House of Habsburg. Except the two most powerful noblemen (Duke Ivanis Corvinus and Bernardin Frankopan), the Croatian nobility wanted him as King. Worrying that a protracted, multi-fronted war would leave him overextended though, Maximilian evacuated from Croatia (he had conquered the whole northern part of the country previously) and accepted the treaty with the Jagiellons. In addition, the County of Tyrol and Duchy of Bavaria went to war in the late 15th century. Bavaria demanded money from Tyrol that had been loaned on the collateral of Tyrolean lands. In 1490, the two states demanded that Maximilian I step in to mediate the dispute. His Habsburg cousin, the childless Archduke Sigismund, was negotiating to sell Tyrol to their Wittelsbach rivals rather than let Emperor Frederick inherit it. Maximilian's charm and tact though led to a reconciliation and a reunited dynastic rule in the 1490. Because