Indian leaders had hoped for independence shortly after World War I, but were disappointed by British opposition. Winston Churchill was one of those who then opposed Indian independence. When World War II broke out, Gandhi refused to support the British war.
Despite Gandhi’s opposition, many Indian soldiers fought on the British side during the war against Germany and Japan. After World War II, British leaders recognized that they could no longer resist Indian demands. In 1947, the British agreed to independence of the subcontinent (India).