Step 1: Context of India's independence
India gained independence on August 15, 1947.
Step 2: UK Prime Ministers around that time
- Winston Churchill was the British Prime Minister during most of World War II (1940–1945).
- Clement Attlee succeeded Churchill after the 1945 general election and was Prime Minister during India’s independence.
- Ramsay Macdonald and Anthony Eden were earlier or later Prime Ministers, not during this period.
Therefore, Clement Attlee was the UK Prime Minister who oversaw Indian independence.