According to a popular tradition, Bodhidharma, a 5th/6th-century Buddhist monk and founder of Shaolin Kung Fu was the third son of a Pallava king from Kanchipuram. However, other traditions ascribe his origins to other places in Asia. Buddhists institutions from Kanchipuram were instrumental in spreading Theravada Buddhism to the Mon people of Myanmar and Thailand who in return spread the religion to the incoming Burmese and Thai people. A number of bronzes unearthed at Kurkihar (Apanaka Vihara, near Gaya in Bihar) mention that the majority of the donors were from Kanchi, indicating that Kurkihar was a major center for the visitors from Kanchi during 9th to 11th century, Jainism Kanchipuram had been a major center of Jainism and is associated with several well-known Jain Acharyas like Samantabhadra and Akalanka. It is thought that Jainism was introduced into Kanchipuram by Kunda Kundacharya (1st century). Jainism spread to the city by Akalanka (3rd century). Kalbhras, the rulers of Kanchipuram before the Pallavas, followed Jainism which gained popularity from royal patronage. The Pallava kings, Simhavishnu, Mahendra Varman and Simhavarman (550560) followed Jainism, until the advent of Nayanmars and Alvars during the 6th and 7th centuries. Mahendravarman I converted from Jainism to Hinduism under the influence of the Naynamar, Appar, was the turning point in the religious geography. The two sects of Hinduism, Saivism and Vaishnavism were revived under the influence of Adi Sankara and Ramanuja respectively. Later Cholas and Vijayanagara kings tolerated Jainism, and the religion was still practised in Kanchi. The original set of the Jina Kanchi institution Mutt was in Kanchipuram. Its original site is now represented by the Trilokyanatha/Chandraprabha temple at Thiruparthikundram. It is a twin Jain temple that has inscriptions from Pallava king, Narasimhavarman II and the Chola kings Rajendra Chola I, Kulothunga Chola I and Vikrama Chola, and the Kanarese inscriptions of Krishnadevaraya. The temple is maintained by Tamil Nadu archaeological department. The Jina Kanchi Mutt was later shifted to Melsithamur, near Gingee in the Villupuram district in the 16th century. There exist many historical Jain sites in the vicinity of Kanchipuram in several villages that still have some Jain population. Other religions The city has two mosques; one near the Ekambareswarar temple, was built during the rule of Nawab of Arcot in the 17th century, and another near the Vaikunta Perumal temple, shares a common tank with the Hindu temple. Muslims take part in the festivals of