The British partitioned India in 1947, dividing it into the largely Hindu nation of India and the predominantly Muslim nations of Pakistan and East Pakistan. This was due to growing nationalism that made British rule too costly to maintain and rising religious tensions between Hindus and Muslims. The partition led to widespread violence and migration along religious lines, with over a million people killed in the process, though a lasting dispute over the region of Kashmir continued between India and Pakistan.