At the end of the thirteenth century, with the Seljuk Sultanate of Rum in terminal decline, Anatolia was divided into several small independent Turkish principalities, called beyliks.