Gandhi accepted the partition of India as a last resort because the communal situation had deteriorated to a point where civil war seemed imminent. It was viewed as an unavoidable tragedy to prevent further bloodshed and chaos during the transition to independence.