Stone castles could survive attacks using fire, although some elements (such as roofs) were still made of wood. Stone walls offered greater protection against catapults and siege engines that were increasingly used in sieges from the 11th century onwards, although they certainly weren't undefeatable.