India was partitioned on religious lines because of the widespread resentment created in the minds of Muslims by the Muslim League leading to the formation of Pakistan on August 14th, 1947 after gaining Independence from the British rule.
Read this post on rachitlifestyle.blogspot.com