Because Hindus and Muslims fought each other, India was divided into two countries: Pakistan and India. Pakistan was also divided, decades later. India won its independence, along with Muslim Pakistan, and became a socialist republic on August 15, 1947. Pakistan won independence on 14 August, some hours before India.