India gained its independence from Great Britain on August 15, 1947. The major cause of this was Mahatma Gandhi. He peacefully protested to get India free from Great Britain. The first prime minister of India was Jawaharlal Nehru. Prime minister is basically a president.