Lord Clement Attlee was the Prime Minister of England when India gained independence in August 1947. Attlee's Labour government (1945-1951) supported decolonization and passed the Indian Independence Act 1947, which partitioned India and created Pakistan.