British rule in the Indian subcontinent ended in 1947 with the creation of new states: the dominions of Pakistan and India, as the successor states to British India. The British Paramountcy over the 562 Indian princely states ended. According to the Indian Independence Act 1947, "the suzerainty of His Majesty over the Indian States lapses, and with it, all treaties and agreements in force at the date of the passing of this Act between His Majesty and the rulers of Indian States". States were thereafter left to choose whether to join India or Pakistan or to remain independent. Jammu and Kashmir, the largest of the princely states, had a predominantly Muslim population ruled by the Hindu Maharaja Hari Singh. He decided to stay independent because he expected that the State's Muslims would be unhappy with accession to India, and the Hindus and Sikhs would become vulnerable if he joined Pakistan. On 11 August, the Maharaja dismissed his prime minister Ram Chandra Kak, who had advocated independence. Observers and scholars interpret this action as a tilt towards accession to India. Pakistanis decided to preempt this possibility by wresting Kashmir by force if necessary.