This is the site of the "Battle of Talas"—first and the last military face-off between the Muslim Arab forces and the Chinese imperial troops in AD 750–51. After the Arab conquest of Central Asia in the 7th century and 8th century, the Persian Samanids occupied a major part of Central Asia in the 9th century. By this time Taraz, developing little by little had been a rich city-state typical of Central Asia with a large population and vast agricultural zone. In the late 9th century the Samanids extended their rule into the Steppes and captured Taraz (893), then one of the headquarters of the Karluk kaghan. A large church was transformed into a mosque, and according to one source, the "Amir of Taraz" embraced Islam. The Islamization of Central Asia was due in significant part to the activities of the Samanids, and in Taraz, other pre-existing religions such as Mazdaism, Christianity, Buddhism, and Tengrism were gradually replaced.