Answer
India gained its independence from British rule on August 15, 1947, after a protracted struggle marked by nonviolent civil disobedience led by Mahatma Gandhi. The Indian Independence Act, passed by the British Parliament, officially transferred power to the Indian leaders, leading to the formation of the independent Dominion of India within the British Commonwealth.