When Louis XII of France entered Milan in 1499 after the First Italian War, he leveraged on a clause of the marriage contract of his grandmother Valentina, the daughter of Gian Galeazzo, and assumed the title of Duke of Milan.