Answer
Hi,
The philosophy that Gandhi followed was civil resistance/nonviolent resistance. His social and religious ideas with core drivers of his believes such as power of truth, showing compassion for others and practicing non-violence acts.
In his move for an independent India, he used his philosophy to teach people to work hard and persevere challenges to achieve goals of the nation by practicing equality without disparities such as those caused by religion.
Step-by-step explanation
Gandhi philosophy and teachings were based on four pillars; truth, nonviolence, Sarvoday and Satyagraha. Being a Hindu, he saw all religions to be equal. He advocated for a philosophy of nonviolence through campaigns that called for changes in the Indian society, critics in educational forms and persuasions, civil disobedience and non-violent protests.
Best Wishes!