After Victor Amadeus II assumed power, Savoy became hostile to France, which invaded in the Nine Years' War. Savoy defeated the French in the Siege of Cuneo (1691), but was dramatically defeated in the battles of Staffarda and Marsaglia. Savoy became a French satellite, and Victor Amadeus II married Anne Marie d'Orléans, niece of King Louis XIV of France.