Why was India divided into two different countries when it won independence from Britain?

2 sentences

India was divided into two countries, India and Pakistan, due to religious differences between Hindus and Muslims. The Muslim League, led by Muhammad Ali Jinnah, pushed for a separate nation for Muslims in order to protect their rights and interests.