After the Indo-Pakistani War of 1947–1948, the princely state of Jammu and Kashmir was divided between India (which controlled the regions of Jammu, Kashmir Valley, and Ladakh) and Pakistan (which controlled Gilgit–Baltistan and Azad Kashmir). The Indian-administered territories elected a constituent assembly in 1951, which ratified the accession of the state to India in 1954.