India was partitioned in 1947 into two independent dominions, India and Pakistan, largely on the basis of religious differences between Hindus and Muslims. The partition resulted in one of the largest mass migrations in history and a significant loss of life. The division was initially based on religious identity, but over time, caste-based politics also played a role in shaping India's social and political fabric.