in 1946, the labour government in britain, its exchequer
exhausted by the recently concluded world war ii, realised that it had neither the mandate at home, the international support, nor the reliability of native forces for continuing to control an increasingly restless india.[5]:203[13][14][15] in february 1947, prime minister clement attlee announced that the british government would grant full self-governance to british india by
june 1948 at the latest.[16] source
https://en.wikipedia.org/wiki/Independence_Day_(India)