Bamyan lies on the Silk Road, which runs through the Hindu Kush mountain region, in the Bamyan Valley. The Silk Road has been historically a caravan route linking the markets of China with those of the Western world. It was the site of several Buddhist monasteries, and a thriving center for religion, philosophy, and art. Monks at the monasteries lived as hermits in small caves carved into the side of the Bamiyan cliffs. Most of these monks embellished their caves with religious statuary and elaborate, brightly colored frescoes. It was a Buddhist religious site from the 2nd century up to the time of the Islamic invasion in the later half of the 7th century. Until it was completely conquered by the Muslim Saffarids in the 9th century, Bamiyan shared the culture of Gandhara.