A Treaty was made in Vienna in 1515 between the king of Poland and duke of Lithuania from the Jagiellon dynasty and Maximilian I, Holy Roman Emperor, duke of Austria from the Habsburg family. It said that if the kings of Bohemia and Hungary, (Jagiellons), were to die without male heirs the Duke of Austria would take over their territory. 