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 .
Even when the French blew up part of the garrison , the castle stood strong and resisted being taken .