Answer
Louis XIV was the French king that Joseph I opposed during the War of the Spanish Succession. Louis XIV was determined to maintain French hegemony in Europe, while Joseph I was determined to restore the Habsburgs to power in Spain. The war ended in a stalemate, with neither side gaining a decisive advantage.