The Kara-khazars in the Balkan Province eventually revolted against the Aq-Khazars to establish the Yabghu Oghuz State of the Kara dynasty which produced the Seljuks who thrived until their dynasty was taken over by Temujin. At this time much of the population was already in settlements around the fertile river valleys along the Amu Darya, and Merv and Nisa became centers of sericulture (the raising of silkworms). A busy caravan route, connecting Tang Dynasty China and the city of Baghdad (in modern Iraq), passed through Merv. Thus, the city of Merv constituted an important prize for any conqueror. Central Asia came under Arab control after a series of invasions in the late 7th and early 8th centuries and was incorporated into Islamic Caliphate divided between provinces of "Mawara'un Nahr" and Khorasan. The Arab conquest brought the religion of Islam to all of the peoples of central Asia. The city of Merv was occupied by the lieutenants of the caliph Uthman ibn Affan, and was constituted as the capital of Khorasan. Using this city as their base, the Arabs, led by their commander Qutayba ibn Muslim, brought under subjection Balkh, Bokhara, Fergana and Kashgaria, and penetrated into China as far as the province of Kan-suh early in the 8th century. Merv achieved some political spotlight in February 748 when Abu Muslim (d. 750) declared a new Abbasid dynasty at Merv, and set out from the city to conquer Iran and Iraq and establish a new capital at Baghdad. Abu Muslim was famously challenged by the Goldsmith of Merv to do the right thing and not make war on fellow Muslims. The Goldsmith was put to death. In the latter part of the 8th century Merv became obnoxious to Islam as the centre of heretical propaganda preached by al-Muqanna "The Veiled Prophet of Khorasan". Present Turkmenistan was ruled by Tahirids between 821 and 873. In 873, Arab rule in Central Asia came to an end as a result of the Saffarid conquest. During their dominion Merv, like Samarkand and Bokhara, was one of the great schools of learning, and the celebrated historian Yaqut studied in its libraries. Merv produced a number of scholars in various branches of knowledge, such as Islamic law, Hadith, history, literature, and the like.