 Two years after her death in 1490, he remarried, to Margaret of Foix-Candale.During the Second Italian War, Ludovico supported Charles VIII of France in his invasion of Italy, fighting alongside him in the battle of Fornovo (1495).When Louis XII of France invaded the Duchy of Milan, Ludovico was again on the French side, culminating in his defeat at the Battle of Garigliano in 1503 against the Spanish forces.