As a rule, Gandhi was opposed to the concept of partition as it contradicted his vision of religious unity. Of the partition of India to create Pakistan, he wrote in Harijan on 6 October 1946:
[The demand for Pakistan] as put forth by the Moslem League is un-Islamic and I have not hesitated to call it sinful. Islam stands for unity and the brotherhood of mankind, not for disrupting the oneness of the human family. Therefore, those who want to divide India into possibly warring groups are enemies alike of India and Islam. They may cut me into pieces but they cannot make me subscribe to something which I consider to be wrong [...] we must not cease to aspire, in spite of [the] wild talk, to befriend all Moslems and hold them fast as prisoners of our love.
However, as Homer Jack notes of Gandhi's long correspondence with Jinnah on the topic of Pakistan: "Although Gandhi was personally opposed to the partition of India, he proposed an agreement...which provided that the Congress and the Moslem League would cooperate to attain independence under a provisional government, after which the question of partition would be decided by a plebiscite in the districts having a Moslem majority."
These dual positions on the topic of the partition of India opened Gandhi up to criticism from both Hindus and Muslims. Muhammad Ali Jinnahand contemporary Pakistanis condemned Gandhi for undermining Muslim political rights. Vinayak Damodar Savarkar and his allies accused him of politically appeasing Muslims while turning a blind eye to their atrocities against Hindus, and for allowing the creation of Pakistan, despite having publicly declared that "before partitioning India, my body will have to be cut into two pieces". This continues to be politically contentious: some, like Pakistani-American historian Ayesha Jalal argue that Gandhi and the Congress's unwillingness to share power with the Muslim League hastened partition; others, like Hindu nationalist politician Pravin Togadia indicated that excessive weakness on Gandhi's part led to the division of India.
Gandhi also expressed his dislike for partition during the late 1930s in response to the topic of the partition of Palestine to create Israel. He stated in Harijan on 26 October 1938:
Several letters have been received by me asking me to declare my views about the Arab-Jew question in Palestine and persecution of the Jews in Germany. It is not without hesitation that I venture to offer my views on this very difficult question. My sympathies are all with the Jews. I have known them intimately in South Africa. Some of them became life-long companions. Through these friends I came to learn much of their age-long persecution. They have been the untouchables of Christianity [...] But my sympathy does not blind me to the requirements of justice. The cry for the national home for the Jews does not make much appeal to me. The sanction for it is sought in the Bible and the tenacity with which the Jews have hankered after return to Palestine. Why should they not, like other peoples of the earth, make that country their home where they are born and where they earn their livelihood? Palestine belongs to the Arabs in the same sense that England belongs to the English or France to the French. It is wrong and inhuman to impose the Jews on the Arabs. What is going on in Palestine today cannot be justified by any moral code of conduct.
Gandhi advised the Congress to reject the proposals the British Cabinet Mission offered in 1946, as he was deeply suspicious of the groupingproposed for Muslim-majority states—Gandhi viewed this as a precursor to partition. However, this became one of the few times the Congress broke from Gandhi's advice (though not his leadership), as Nehru and Patel knew that if the Congress did not approve the plan, the control of government would pass to the Muslim League. Between 1946 and 1948, over 5,000 people were killed in violence. Gandhi was vehemently opposed to any plan that partitioned India into two separate countries. But an overwhelming majority of Muslims living in India, alongside Hindus and Sikhs, favoured partition. Additionally Muhammad Ali Jinnah, the leader of the Muslim League, commanded widespread support in West Punjab, Sindh, North-West Frontier Province and East Bengal. The partition plan was approved by the Congress leadership as the only way to prevent a wide-scale Hindu-Muslim civil war. Congress leaders knew that Gandhi would viscerally oppose partition, and it was impossible for the Congress to go ahead without his agreement, for Gandhi's support in the party and throughout India was strong. Gandhi's closest colleagues had accepted partition as the best way out, and Sardar Patel endeavoured to convince Gandhi that it was the only way to avoid civil war. A devastated Gandhi gave his assent.
He conducted extensive dialogue with Muslim and Hindu community leaders, working to cool passions in northern India, as well as in Bengal. Despite the Indo-Pakistani War of 1947, he was troubled when the Government decided to deny Pakistan the 55 crores (550 million Indian rupees) due as per agreements made by the Partition Council. Leaders like Sardar Patel feared that Pakistan would use the money to bankroll the war against India. Gandhi was also devastated when demands resurged for all Muslims to be deported to Pakistan, and when Muslim and Hindu leaders expressed frustration and an inability to come to terms with one another. Gandhi's arrival in Delhi, turned out to an important intervention in ending the rioting, he even visited Muslims mohallas to restore faith of the Muslim populace. He launched his last fast-unto-death on January 12, 1948, in Delhi, asking that all communal violence be ended once and for all, Muslims homes be restored to them and that the payment of 550 million rupees be made to Pakistan. Gandhi feared that instability and insecurity in Pakistan would increase their anger against India, and violence would spread across the borders. He further feared that Hindus and Muslims would renew their enmity and that this would precipitate open civil war. After emotional debates with his life-long colleagues, Gandhi refused to budge, and the Government rescinded its policy and made the payment to Pakistan. Hindu, Muslim and Sikh community leaders, including the Rashtriya Swayamsevak Sangh andHindu Mahasabha assured him that they would renounce violence and call for peace. Gandhi thus broke his fast by sipping orange juice.