History of Gilgit Agency
Before the formation of the princely state of Jammu and Kashmir in the mid- 19th century by the Dogra rulers, the region of Gilgit had been administered by Indian princes who were styled as Raas. Gilgit and the bordering Baltistan, along with their neighboring regions of Ladakh, Hunza and Nagar, formed the vassals of the Jammu and Kashmir state, but sustained substantial autonomy and independence. After the British Government of India formed the Gilgit Agency in the year 1877, these regions, including the Wazarats of Gilgit and Ladakh, were governed directly by the British administration, though the princely state of Jammu and Kashmir maintained sovereignty. The native rulers or princes of these regions appeared at the Durbars of Jammu and Kashmir until India achieved in 1947.
Due to the Partition of India and the consequent incursion Pakistani forces into Jammu and Kashmir during the First Kashmir War, most of the erstwhile Gilgit Wazarat was incorporated into the Pakistan administered Kashmir; while the Ladakh Wazarat and the Kargil region were included as a part of the Union of India. The Line of Control, thus, established at the culmination of the war is the present border of India and Pakistan.