A Treaty was made in Vienna in 1515 between the king of Poland and duke of Lithuania from the Jagiellondynasty and the 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. They also ruled over the Kingdom of Sardinia.