Answer
Joseph I continued the War of the Spanish Succession that was begun by his father, Charles VI. The war was fought over the succession to the Spanish throne after Charles' death. Joseph fought on the side of the Austrians, who were opposed by the French and their allies. The war ended in 1713 with the Treaty of Utrecht, which recognized Philip V as the King of Spain.