rulers of France, Poland, Hungary, Bohemia, and Russia, as well as to bolster his dynasty's position – temporarily threatened by the union between Anne of Foix-Candale and Vladislaus II of Hungary, in addition to resistance of the Hungarian magnates – in Bohemia and Hungary (that the Habsburgs claimed through inheritance and overlordship). Maximilian met with the Jagiellonian kings Ladislaus II of Hungary and Bohemia and Sigismund I of Poland at the First Congress of Vienna in 1515. There they arranged for Maximilian's granddaughter Mary to marry Louis, the son of Ladislaus, and for Anne (the sister of Louis) to marry Maximilian's grandson Ferdinand (both grandchildren being the children of Philip the Handsome, Maximilian's son, and Joanna of Castile). The marriages arranged there brought Habsburg kingship over Hungary and Bohemia in 1526. In 1515, Louis was adopted by Maximilian. Maximilian had to serve as the proxy groom to Anna in the betrothal ceremony, because only in 1516 did Ferdinand agree to enter into the marriage, which would happen in 1521. These political marriages were summed up in the following Latin elegiac couplet, reportedly spoken by Matthias Corvinus: Bella gerant aliī, tū fēlix Austria nūbe/ Nam quae Mars aliīs, dat tibi regna Venus, "Let others wage war, but thou, O happy Austria, marry; for those kingdoms which Mars gives to others, Venus gives to thee." Contrary to the implication of this motto though, Maximilian waged war aplenty (In four decades of ruling, he waged 27 wars in total). Late in his life though, only the military situation in the East worked well – the Magyars was said to fear him more than the Turks or the Devil. In the West, he could do no more than blocking French expansion and only with Spanish aid. His general strategy was to combine his intricate systems of alliance, military threats and offers of marriage to realize his expansionist ambitions. Using overtures to Russia, Maximilian succeeded in coercing Bohemia, Hungary and Poland into acquiesce in the Habsburgs' expansionist plans. Combining this tactic with military threats, he was able to gain the favourable marriage arrangements In Hungary and Bohemia (which were under the same dynasty). At the same time, his sprawling panoply of territories as well as potential claims constituted a threat to France, thus forcing Maximilian to continuously launch wars in defense of his possessions in Burgundy, the Low Countries and Italy against four generations of