The intervention of the Roman curia, which hitherto had been hostile to Casimir, was due to the permutations of European politics. The pope was anxious to get rid of the Hussite King of Bohemia, George Podebrad, as the first step towards the formation of a league against the Ottoman Turks. Casimir was to be a leading factor in this combination, and he took advantage of it to procure the election of his son Vladislaus II as the King of Bohemia. But he would not commit himself too far, and his ulterior plans were frustrated by the rivalry of Matthias Corvinus, King of Hungary, who even went so far as to stimulate the Teutonic Order to rise against Casimir. 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.