Mahatma Gandhi spent over two decades in South Africa (1893-1914) and it was during this period that he developed and first employed the philosophy and techniques of Satyagraha (nonviolent resistance) against racial discrimination and injustice faced by Indians.