Only when the French succeeded in blowing up part of the garrison, during the War of the Spanish Succession in 1707, was the castle taken.
Before the War of the Spanish Succession, the castle had stood against many attacks without falling into the hands of the attackers.