Political map of South & Southwest Asia 27 October 1947 (First Kashmir War): When the British Indian Empire was partitioned, most of the numerous princely states quickly agreed to join either India or Pakistan. An important exception was Kashmir (Jammu and Kashmir (princely state)), whose Hindu Maharaja attempted to remain independent while his Muslim subjects favored union with Pakistan. The dispute soon led to war, with Pakistan invading Kashmir and the Maharaja acceding his state to India (Indo-Pakistani War of 1947). After a year's fighting, India and Pakistan concluded a ceasefire, effectively dividing Kashmir between them.