Banaras grew as an important industrial centre, famous for its muslin and silk fabrics, perfumes, ivory works, and sculpture. Buddha is believed to have founded Buddhism here around 528 BC when he gave his first sermon, The Setting in Motion of the Wheel of Dharma, at nearby Sarnath. The citys religious importance continued to grow in the eighth century when Adi Shankara established the worship of Shiva as an official sect of Banaras. Despite the Muslim rule, Banaras remained the centre of activity for Hindu intellectuals and theologians during the Middle Ages, which further contributed to its reputation as the cultural centre of religion and education. Goswami Tulsidas wrote his epic poem on Lord Ramas life called Ram Charit Mansas in Banaras. Several other major figures of the Bhakti movement were born in Banaras, including Kabir and Ravidas. Guru Nanak Dev visited Banaras for Shivratri in 1507, a trip that played a large role in the founding of Sikhism. In the sixteenth century, Banaras experienced a cultural revival under the Muslim Munghai emperor Akbar, who invested in the city and built two large temples dedicated to Shiva and Vishnu. Much of modern Banaras was built during the eighteenth century by the Maratha and Bhumihar kings. The kingdom of Banaras was given official status by the Mughals in 1737 and continued as a dynasty-governed area until Indian independence in 1947.