early New Persian language was the Shahnameh (Book of Kings), presented by its author Ferdowsi to the court of Mahmud of Ghazni (998–1030). This was a kind of Iranian nationalistic resurrection: Ferdowsi galvanized Persian nationalistic sentiment by invoking pre-Islamic Persian heroic imagery and enshrined in literary form the most treasured folk stories. Ferdowsi's Shahnameh enjoyed a special status in Iranian courtly culture as a historical narrative as well as a mythical one. The powerful effect that this text came to have on the poets of this period is partly due to the value that was attached to it as a legitimizing force, especially for new rulers in the Eastern Islamic world: The Persianate culture that emerged under the Samanids in Greater Khorasan, in northeast Persia and the borderlands of Turkistan exposed the Turks to Persianate culture; The incorporation of the Turks into the main body of the Middle Eastern Islamic civilization, which was followed by the Ghaznavids, thus began in Khorasan; "not only did the inhabitants of Khurasan not succumb to the language of the nomadic invaders, but they imposed their own tongue on them. The region could even assimilate the Turkic Ghaznavids and Seljuks (11th and 12th centuries), the Timurids (14th and 15th centuries), and the Qajars (19th and 20th centuries). The Ghaznavids, the rivals and future successors of the Samanids, ruled over the southeastern extremities of Samanid territories from the city of Ghazni. Persian scholars and artists flocked to their court, and the Ghaznavids became patrons of Persianate culture. The Ghaznavids took with them Persianate culture as they subjugated Western and Southern Asia . Apart from Ferdowsi, Rumi, Abu Ali Sina, Al-Biruni, Unsuri Balkhi, Farrukhi Sistani, Sanayi Ghaznawi and Abu Sahl Testari were among the great Iranian scientists and poets of the period under Ghaznavid patronage. Persianate culture was carried by successive dynasties into Western and Southern Asia, particularly by the Persianized Seljuqs (1040–1118) and their successor states, who presided over Iran, Syria, and Anatolia until the 13th century, and by the Ghaznavids, who in the same period dominated Greater Khorasan and parts of India. These two dynasties together drew the centers of the Islamic world eastward. The institutions stabilized Islamic society into a form that would persist, at least in Western Asia, until the 20th century. The Ghaznavids moved their capital from Ghazni to Lahore in modern Pakistan, which they turned into another center of Islamic culture.