On August 15, 1947, India gained independence from British rule after years of struggle, activism, and non-violent resistance led by various freedom fighters, most notably Mahatma Gandhi. The Indian Independence Act of 1947 was passed by the British Parliament, transferring the legislative sovereignty to the Indian Constituent Assembly.