Final answer:
Mahatma Gandhi led hunger strikes while in prison as a form of nonviolent protest to advance the cause of Indian independence.
Step-by-step explanation:
During his time in prison, when violence broke out, Mahatma Gandhi engaged in a nonviolent form of protest by leading hunger strikes. Gandhi, who was the leader of the Indian National Congress, was deeply committed to the principles of non-violence (ahimsa) and truth (satyagraha), and he employed these methods effectively to advance the cause of Indian independence. For instance, he organized the Non-Cooperation Movement and the famous Salt March to defy British laws in a peaceful manner. In doing so, Gandhi also maintained a lifestyle of simplicity and asceticism, which he believed was essential for a satyagrahi, or a practitioner of nonviolent resistance. His hunger strikes were a powerful demonstration of the lengths he was willing to go to in support of his beliefs and to bring attention to the injustices faced by the Indian population under British rule.