The belated attempt at sanctification of the Bosnian monarchy gravely offended the Hungarian king Matthias, who saw the Pope's involvement in the coronation as an infringement of the rights of Hungarian kings. Matthias went so far as to request that the Pope withdraw his support of Stephen. Pope Pius and Bishop John Vitéz mediated in the dispute between the kings of Bosnia and Hungary, but the negotiations did not proceed easily. The relations were finally repaired in the spring of 1462. Matthias was driven by the need to ransom the Crown of St Stephen from Emperor Frederick III, and Stephen was obliged to contribute. In return for the Hungarian king's good graces, Stephen was also required to cede certain towns, swear fealty and to refuse to pay tribute to the Ottomans.