The Indo-Pakistani War of 1947–1948 was the first major armed conflict between India and Pakistan and was fought primarily over the princely state of Jammu & Kashmir. The conflict began with the Pakistan-supported tribal invasion of Jammu & Kashmir on 22 October 1947. Maharaja Hari Singh subsequently acceded to India on 26 October, and Indian troops were airlifted to Srinagar on 27 October. Indian forces stopped the advance toward Srinagar and subsequently conducted operations across the Kashmir Valley, Jammu and Ladakh sectors. Major operations and battles included the defence of Srinagar, Badgam and Shelatang, the battles around Naushera and Jhangar, the defence and relief of Poonch, operations at Tithwal and Zojila, and the recapture of Kargil. By May 1948, the Indian force in Jammu & Kashmir had been reorganised into Srinagar and Jammu divisions. Fighting continued through 1948 until a United Nations-supported ceasefire came into effect on 1 January 1949. The conflict ended with the former princely state divided between the areas held by India and Pakistan, with a ceasefire line subsequently established under the 1949 Karachi Agreement.