Of Poland and Matthias, were commanded in turn to execute the papal decree of deposition, and Matthias gladly placed his army at the disposal of the Holy See.
The inaction of Maximilian at this time is explained by the condition of affairs in Hungary, where the death of king Matthias Corvinus had brought about a struggle for this throne.
During the wars between Turkey and Austria, its ownership was often contested; and it fell before King Matthias I.
But neither the pope nor the Venetians would hear of such a transfer, and the negotiations on this subject greatly embittered Matthias against the Curia.
On the 24th of January 1458, 40,000 Hungarian noblemen, assembled on the ice of the frozen Danube, unanimously elected Matthias Hunyadi king of Hungary, and on the 14th of February the new king made his state entry into Buda.
It was as much as Matthias could do to keep the civic life of Hungary from expiring altogether, and nine-tenths of his burgesses were foreigners with no political interest in the country of their adoption.
The death of Matthias in 1490 was a great relief to Poland, and Casimir employed the two remaining years of his reign in consolidating his position still further.
During the interval between these peaces, Matthias, in self-defence, again made war on the emperor, reducing Frederick to such extremities that he was glad to accept peace on any terms. By the final arrangement made between the contending princes, Matthias recognized Ladislaus as king of Bohemia proper in return for the surrender of Moravia, Silesia and Upper and Lower Lusatia, hitherto component parts of the Czech monarchy, till he should have redeemed them for 400,000 florins.
Intervened so as to leave Matthias free to engage in a projected crusade against the Turks, which subsequent political complications, however, rendered impossible.
On the death of George, Casimir's eldest son Wladislaus was elected king of Bohemia by the Utraquist party, despite the determined opposition of Matthias Corvinus, king of Hungary, whose ability and audacity henceforth made him Casimir's most dangerous rival.