The partition was set forth in the Indian Independence Act 1947 and resulted in the dissolution of the British Raj, as the British government there was called. The two self-governing countries of India and Pakistan legally came into existence at midnight on 14–15 August 1947.