Gandhi's philosophy of nonviolence, also known as satyagraha, was based on the idea that nonviolent resistance could achieve political and social change. He believed in practicing nonviolence in every aspect of life.