Charles VIII of France and Louis XII were related as second cousins once removed, sharing a common ancestor in Louis I, Duke of Orléans. Simply put, they were distant cousins with a shared lineage that extended back a few generations.
The Reign of Louis XII: Unveiling France's Renaissance Monarch