The ghazis fought against the Byzantines and then the Mongols, who invaded Anatolia following the establishment of the Il-Khanid (Ilhanid) empire in Iran and Mesopotamia in the last half of the 13th century. With the disintegration of Seljuq power and its replacement by Mongol suzerainty, enforced by direct military occupation of much of eastern Anatolia, independent Turkmen principalities—one of which was led by Osman—emerged in the remainder of Anatolia.