Bodhidharma was from the Brahman caste of South India and honored as the 28th Patriarch of Buddhism. Arriving at Shaolin Temple around 520 AD, Bodhidharma sought to become enlightened. He found a nearby cave and meditated for nine years, constructing the Chan Buddhism philosophy of China. The practice of Mahayana wall-gazing as a type of meditation is ascribed to Bodhidharma and the Lankavatara Sutra is one of the fundamental Chan texts in relation to Bodhidharma. It is said that Bodhidharma was also expert at martial arts and in particular a master of sitting-meditation technique.