Castles, in particular, were instruments of war and occupying or levelling them was the goal of invading armies. In many cases, the castles were then taken over by the victors and re-purposed, but many were dismantled, particularly when the structure could no longer repel attacks by cannon. – The Art Newspaper