Bare rock, not battlements, did most of the early work. Medieval builders treated the cliff as primary structure, carving terraces and sockets so that walls followed existing stress lines in the bedrock. Instead of resisting the landscape, castles nested into it, turning the cliff into a gravity anchor that redirected loads downward rather than outward over the void.
Their design logic resembles a manual lesson in structural mechanics and entropy: keep order in the system by simplifying every force path. Thick outer walls, barrel vaults and buttresses created clear load paths that channelled compressive stress into the rock. High mass raised inertia, damping ground motion during earthquakes. Where shaking threatened shear failure, builders broke volumes into smaller blocks and courtyards, inserting controlled joints that acted as primitive seismic gaps.
Materials did the rest. Lime mortar, with slow carbonation and microcracking, behaved as a forgiving composite rather than brittle glue, allowing tiny movements to dissipate energy instead of propagating fractures. Rubble cores between dressed stone faces worked like a granular damper, similar to a tuned mass in modern engineering, absorbing vibration while the outer shell kept geometry and load distribution intact.