In 1703/1704, during the Spanish Succession War, a garrison was installed in the castle, and it was occupied by soldiers again in 1708 in 1712.