Japanese Zen is derived from the Japanese pronunciation of the Middle Chinese word 禪 (Chan) which traces its roots to the Indian practice of dhyāna ("meditation"). Buddhism was introduced to China in the first century CE. According to tradition, Chan was introduced around 500 CE by Bodhidharma, an Indian monk teaching dhyāna. He was the 28th Indian patriarch of Zen and the first Chinese patriarch. Buddhism was introduced in Japan in the 8th century CE during the Nara period (710-794) and the Heian period (794–1185). Zen was not introduced as a separate school in Japan until the 12th century during the Kamakura
Zen scriptures "are expected to become familiar with the classics of the Zen canon". A review of the early historical documents and literature of early Zen masters clearly reveals that they were well versed in numerous Mahāyāna Buddhist sūtras. Nevertheless, Zen is often pictured as anti-intellectual. This picture of Zen emerged during the Song Dynasty (960–1297), when Chán became the dominant form of Buddhism in China, and gained great popularity among the educated and literary classes of Chinese society. The use of koans, which are highly stylized literary texts, reflects this popularity among the higher classes. In the tenth century, during the