Linear castles tended to be built where geography favoured this approach. The Knights Hospitaller fortress of Margat in Syria is built on a narrow rocky promontory, ideal for preventing successful undermining but inappropriate for the rings of walls needed for a concentric castle. The core of Krak des Chevaliers is located in a narrow gully carved from sheer rock walls severely limiting possibilities for a flank attack.