Citadels and city walls played a significant role in medieval Anatolia. These structures, which vary greatly in their individual characteristics, were built under the Seljuk and Artuqid dynasties, as well as under the Ayyubids and Mamluks in southeastern Anatolia.