British colonial rule in India lasted for 190 years. Britain established its rule in 1757, and it remained in charge of India until 1947, when violence in India and economic issues at home led England to relinquish control.
England initially took control of India to control trade routes. The British East India Company conducted major operations in India, but the company foresaw greater profits if the country was under British control. The Battle of Plassey began a land grab by England, which eventually led to full colonial control.
Over the ensuing years, India made several attempts to overthrow the colonial government. However, it was unsuccessful until after World War II. At that time, England's financial situation was in a poor state, and relinquishing India was an effective way to reduce expenditures while earning global goodwill.