Mohandas Gandhi had many allies that helped them gain independence from Britain like, Jawaharlal Nehru and Mohammed Ali Jinnah. Jawaharlal Nehru was a Hindu, worked with Gandhi to achieve independence and became the prime minister of the newly independent India. Mohammed Ali Jinnah was a leader and a founder of the Muslim League and became the first prime minister of Pakistan.
The Muslim league wrote a resolution called the Lahore Resolution, that divided the Hindus from the Muslims. Muslims formed a new country called Pakistan and the Hindus stayed in India.
In attempt of achieving their goal of gaining independence, there was a Indian National Congress formed that was dominated by Hindu Indians and their concerns. In response to Hindu nationalism, leading members of the upper class Muslim community form the Muslim League in 1906. The Muslim League petitioned against the British for more say in government for Indian Muslims, laws and policies that were in their favor.
The Amritsar Massacre occurred on April 13, 1919. This was a huge turning point for India. British troops fired on a large crowd of unarmed Indians. Killing and wounding hundreds. This was the prelude to Mohandas Gandhi's full commitment to the cause of Indian nationalism and independence from Britain. From then on, Gandhi started peaceful movements and protests to try to gain India's independence back. Such movement were, the Homespun Movement and the Salt March. With the Homespun Movement, Gandhi tried to modernize India, Gandhi said India needed to be self sufficient so they learned how to make their clothes and other stuff. The Salt March on the other hand was the most peaceful rebellion.
At the outbreak of WWII, the Indian National Congress launched the Quit India Movement, which demanded immediate independence for India. Because of the Quit India Movement, the recognition that the armed forces were opposed to British rule, and the lack of resources from WWII, British gave up their control of India.
Gandhi was unhappy still even though they gained independence from Britain because, the Hindus and the Muslims were still separated in two separate countries, India and Pakistan. Gandhi wanted them to be united as one country, India.