During the 5th and 6th centuries CE, merchants played a large role in the spread of religion, in particular Buddhism. Merchants found the moral and ethical teachings of Buddhism an appealing alternative to previous religions. As a result, merchants supported Buddhist monasteries along the Silk Road, and in return the Buddhists gave the merchants somewhere to stay as they traveled from city to city. As a result, merchants spread Buddhism to foreign encounters as they traveled. Merchants also helped to establish diaspora within the communities they encountered, and over time their cultures became based on Buddhism. As a result, these communities became centers of literacy and culture with well-organized marketplaces, lodging, and storage. The voluntary conversion of Chinese ruling elites helped the spread of Buddhism in East Asia and led Buddhism to become widespread in Chinese society. The Silk Road transmission of Buddhism essentially ended around the 7th century with the rise of Islam in Central Asia.