Did religion play a factor in India being divided in two after it won independence from Britain. If yes, what were the religions and where are they mainly located after independence?

2.5 sentences

Yes, religion played a significant factor in India being divided into two separate countries, India and Pakistan, after gaining independence from Britain. The division was primarily based on religious lines, with Hindus being the majority in India and Muslims being the majority in Pakistan. After independence, India became a predominantly Hindu-majority nation, while Pakistan became a Muslim-majority nation.