 The first wave of migration dates back to the 7th century, followed by migrations during the Seljuk Empire (1037–1194), the fleeing Oghuz during the Mongol destruction of the Khwarazmian dynasty (see Kara Koyunlu and Ag Qoyunlu), and the largest migration, during the Ottoman Empire (1535–1919).With the conquest of Iraq by Suleiman the Magnificent in 1534, followed by Sultan Murad IV's capture of Baghdad in 1638, a large influx of Turks—predominately from Anatolia—settled down in Iraq.Thus, most of today's Iraqi Turkmen are the descendants of the Ottoman soldiers, traders and civil servants who were brought into Iraq during the rule of the Ottoman Empire.