<Tr> <Th> Residence </Th> <Td> United Kingdom Buckingham Palace India Viceroy's House </Td> </Tr> <Tr> <Th> Appointer </Th> <Td> Hereditary </Td> </Tr> <P> Emperor / Empress of India was a title used by the British monarchs during the British Raj in the Indian subcontinent from 1876 (see Royal Titles Act 1876) until 1948, after India had gained independence from the United Kingdom, when for a transitional period the British monarch was also king of the independent dominions of India and Pakistan . </P> <P> The term "Emperor of India" is also used to refer to pre-British Indian emperors (see List of Indian monarchs). A Persian language title, which translates to Emperor of India in English, was also used in 1857 by the last Mughal emperor Bahadur Shah II until he was captured by the British . </P>

Who ruled india in place of the british monarch