Treaty of Wiener Neustadt

[5] Matthias had Czech King George of Poděbrady (declared a heretic by Pius) and the Hussite mercenary leader John Jiskra on his side.

They partially agreed on the status of the Holy Crown and the cities of Fraknó, Kabold, Kismarton, Kőszeg, Sopron, and Rohonc.

The aforementioned western territories were mortgaged to the Holy Roman Empire until the year 1647 but also had an option for the actual Hungarian ruler to redeem the cities of Fraknó and Kabold for 40,000 golden florins after Frederick's death.

The attacking troops departed from the Austrian town of Waltersdorf, which was a direct insult to Matthias, who immediately protested.

In retaliation, the garrison of Sopron withheld and foreclosed a wine shipment to Wiener Neustadt in 1466 and demanded the compensation again, which still remained undone.

His rule led to a series of wars, and their advantageous outcome resulted in Matthias being crowned King of Bohemia (1469–1490) and Duke of Austria (1486–1490).

On 18 April 1490, after the death of Matthias, Emperor Maximilian I sent an offer to the Hungarian nobles in which he submitted his claims for the throne of Hungary based upon this treaty.

He promised protection against Poland, assured the annexation of Matthias's conquests to Hungary, and pledged to keep the Hungarian clerks and counselors in their offices.

To enforce his influence over the royal election, he ordered numerous copies of the Peace Treaty of Wiener Neustadt to be printed and distributed among the elector nobility.

The Holy Crown, one of the provisos of the agreement
Border mortgages were in the main scope of the negotiations