The first impulse to the study of Sanskrit was given by the practical administrative needs of our Indian possessions. Warren Hastings, at that time Governor-General, clearly seeing the advantage of ruling the Hindus as far as possible according to their own laws and customs, caused a number of Brahmans to prepare a digest based on the best ancient Indian legal authorities. An English version of this Sanskrit compilation, made through the medium of a Persian translation, was published in 1776. The introduction to this work, besides giving specimens of the Sanskrit script, for the first time supplied some trustworthy information about the ancient Indian language and literature. The earliest step, however, towards making Europe acquainted with actual Sanskrit writings was taken by Charles Wilkins, who, having, at the instigation of Warren Hastings, acquired a considerable knowledge of Sanskrit at Benares, published in 1785 a translation of the Bhagavad-gītā, or The Song of the Adorable One, and two years later, a version of the well-known collection of fables entitled Hitopadeça, or Friendly Advice.
Sir William Jones (1746–94) was, however, the pioneer of Sanskrit studies in the West. It was this brilliant and many-sided Orientalist who, during his too brief career of eleven years in India, first aroused a keen interest in the study of Indian antiquity by his unwearied literary activity and by the foundation of the Asiatic Society of Bengal in 1784. Having rapidly acquired an accurate knowledge of Sanskrit, he published in 1789 a translation of Çakuntalā, the finest Sanskrit drama, which was greeted with enthusiasm by such judges as Herder and Goethe. This was followed by a translation of the Code of Manu, the most important of the Sanskrit law-books. To Sir William Jones also belongs the credit of having been the first man who ever printed an edition of a Sanskrit text. This was a short lyrical poem entitled Ṛitusaṃhāra, or Cycle of the Seasons, published in 1792.