from Louis XI, finally doing so upon Mary's death in 1482 at the Peace of Arras. Relationships with France remained difficult, Louis XI being defeated at the Battle of Guinegate in 1479. Matters with France were only concluded in 1493 at the Treaty of Senlis after Maximilian had become emperor. This and Maximilian's later dynastic alliances gave rise to the saying: Bella gerant alii, tu felix Austria nube, Nam quae Mars aliis, dat tibi regna Venus which became a motto of the dynasty. Frederick's reign was pivotal in Austrian history. He united the core lands by simply outliving the rest of his family. From 1439, when Albert V died and the responsibilities for both of the core territories lay with Frederick, he systematically consolidated his power base. The next year (1440) he marched on Rome as King of the Romans with his ward, Ladislaus the last Albertinian duke, and when he was crowned in Rome in 1452 he was not only the first Habsburg but also the last German king to be crowned in Rome by the Pope. The dynasty was now en route to become a world power. The concept of pietas austriacae (the divine duty to rule) had originated with Rudolph I, but was reformulated by Frederick as AEIOU, Alles Erdreich ist Österreich untertan or Austriae est imperare orbi universo (Austria's destiny is to rule the world), which came to symbolise Austrian power. However, not all events proceeded smoothly for Frederick. The Austrian-Hungarian War (1477–1488) resulted in the Hungarian king, Matthias Corvinus setting himself up in Vienna in 1485 till his death in 1490. Hungary occupied the entire Eastern Austria. Frederick therefore found himself with an itinerant court, predominantly in the Upper Austrian capital of Linz. Maximilian I (1493–1519): Reunification Maximilian I shared rule with his father during the latter year of Frederick's reign, being elected King of the Romans in 1486. By acquiring the lands of the Tyrolean line of the Habsburgs in 1490 he finally reunited all the Austrian lands, divided since 1379. He also needed to deal with the Hungarian problem when Mathias I died in 1490. Maximilian reconquered the lost parts of Austria and established peace with Mathias's successor Vladislaus II at the Peace of Pressburg in 1491. However the dynastic pattern of division and unification would be one that kept repeating itself over time. With unsettled borders Maximilian found Innsbruck in the Tyrol