On 3 June 1947, control of the
Gilgit Agency was transferred to the
princely state of
Jammu and Kashmir. The state's
Maharaja,
Hari Singh, appointed Brigadier Ghansara Singh to govern the area on his behalf. The
Partition of India took place in August of that year, which divided the former British colony into a
Hindu-majority
India and a
Muslim-majority
Pakistan. On 22 October 1947, amidst Pakistani fears of the Maharaja potentially
acceding his Muslim-majority princely state to India, state-backed
Pashtun tribal militias from Pakistan invaded Jammu and Kashmir and attacked the Maharaja's
state forces. As Pakistani militias closed in on the capital of
Srinagar by 26 October, Hari Singh had fled from the princely state and
signed an instrument of accession for Jammu and Kashmir with India. The decision by the Maharaja—a
Hindu Dogra ruler governing a princely state with a Muslim-majority populace—to accede to a Hindu-majority India following the creation of Pakistan was seen as controversial. Brown's view on the escalating
Kashmir conflict was that the whole of the princely state of Jammu and Kashmir, including Gilgit, should go to Pakistan as the state's population was predominantly Muslim, and that the foundation of Pakistan's existence was the accommodation of Muslim-majority regions in British India. Singh ignored the warning, prompting Brown to begin planning what became known as '
Operation Datta Khel'. raising the Pakistani flag during the
rebellion Brown was well aware of the anti-Maharaja sentiments among the populace of the Gilgit Agency. Brown then requested for troops to be sent to the Gilgit Agency from Pakistan and established a de facto military administration on 1 November. On assuming direct control of the region, Brown thwarted plans by a large section of his contingent to set up an independent republic called Gilgit−Astor. He was then instructed by
Sir George Cunningham, the then-
Governor of the North West Frontier Province to restore order in the region. In 1998, Brown's diary from his time in Gilgit was published as a book titled
The Gilgit Rebellion. ==Later life and return to the United Kingdom==