India and Pakistan fought the First Kashmir War that lasted through 1948, at the end of which large parts of the three western districts of Mirpur, Poonch and Muzaffarabad, the whole of the Gilgit Agency and the Skardu sub-district of Ladakh came under Pakistani control.
From 1948 until the end of the conflict, India and Pakistan had a dispute over Kashmir. By its conclusion, large parts of three western districts—Mirpur, Poonch, and Muzaffarabad—and the Gilgit Agency, as well as Skardu sub-district of Ladakh in Ladakh, were under Pakistani control.