The ancestors of Osman I, the founder of the dynasty, were members of the Kayı tribe who had entered Anatolia along with a mass of Turkmen Oğuz nomads. Those nomads, migrating from Central Asia, established themselves as the Seljuq dynasty in Iran and Mesopotamia in the mid-11th century, overwhelmed Byzantium after the Battle of Manzikert (1071), and occupied eastern and central Anatolia during the 12th century.