Linguistics received enthusiastic imperial support. The European empires believed that in order to govern effectively they must know the languages and cultures of their subjects. British officers arriving in India were supposed to spend up to three years in a Calcutta college, where they studied Hindu and Muslim law alongside English law; Sanskrit, Urdu and Persian alongside Greek and Latin; and Tamil, Bengali and Hindustani culture alongside mathematics, economics and geography. The study of linguistics provided invaluable help in understanding the structure and grammar of local languages.