From the 18th century , people began building castles again from new interest in Gothic architecture , but they were not used for fighting . From the 18th century onwards , there was a renewed interest in castles with the construction of mock castles , part of a romantic revival of Gothic architecture , but they had no military purpose .