In the Middle Ages, the technology of the castle evolved by leaps and bounds. Engineers constructed some of the most spectacular buildings of all time in a dramatic arms- race. At the same time, new weapons designed to attack castles came to the fore.