In 1947, the British Parliament passed an act establishing the Hindu majority country of India and the Muslim majority country of Pakistan. At midnight of August 14, 1947, these two countries became independant, ending British imperial rule of India.