In 1947, when India and Pakistan were partitioned and became independent, one of the princely states free to accede to either India or Pakistan or to remain independent was the state known by the collective title of Jammu and Kashmir. The majority of the population was Muslim, but the maharajah was Hindu. The maharajah opted for accession to India, and India accepted, subject to later verification by plebiscite.