Perhaps in the War of Spanish Succession, Charles II's will gives the Spanish throne to Louis XIV rather than his grandson? Should be rather simple, really. Although I don't know of Spain and France would truly unite; more likely they would have the same sort of relationship that...