Civil rights movement in South Africa (1893–1914)
South Africa changed Gandhi dramatically, as he faced the discrimination commonly directed at blacks and Indians. One day in court at Durban, the magistrate asked him to remove his turban. Gandhi refused and stormed out of the courtroom. He was thrown off a train at Pietermaritzburg, after refusing to move from the first class to a third class coach while holding a valid first class ticket.
Traveling further on by stagecoach, he was beaten by a driver for refusing to travel on the foot board to make room for a European passenger. He suffered other hardships on the journey as well, including being barred from many hotels. These incidents have been acknowledged by several biographers as a turning point in his life, explaining his later social activism. It was through witnessing firsthand the racism, prejudice and injustice against Indians in South Africa that Gandhi started to question his people's status, and his own place in society.
Gandhi extended his original period of stay in South Africa to assist Indians in opposing a bill to deny them the right to vote. Though unable to halt the bill's passage, his campaign was successful in drawing attention to the grievances of Indians in South Africa. He founded the Natal Indian Congress in 1894, and through this organization, he molded the Indian community of South Africa into a homogeneous political force. In January 1897, when Gandhi returned from a brief trip to India, a white mob attacked and tried to lynch him.
In an early indication of the personal values that would shape his later campaigns, he refused to press charges against any member of the mob, stating it was one of his principles not to seek redress for a personal wrong in a court of law.
At the onset of the South African War, Gandhi argued that Indians must support the war effort in order to legitimize their claims to full citizenship, organizing a volunteer ambulance corps of 300 free Indians and 800 indentured labourers called the Indian Ambulance Corps, one of the few medical units to serve wounded black South Africans. In 1906, the Transvaal government promulgated a new Act compelling registration of the colony's Indian population.
At a mass protest meeting held in Johannesburg on September 11th that year, Gandhi adopted his still evolving methodology of satyagraha (devotion to the truth), or non-violent protest, for the first time, calling on his fellow Indians to defy the new law and suffer the punishments for doing so, rather than resist through violent means. This plan was adopted, leading to a seven-year struggle in which thousands of Indians were jailed (including Gandhi), flogged, or even shot, for striking, refusing to register, burning their registration cards, or engaging in other forms of non-violent resistance.
While the government was successful in repressing the Indian protesters, the public outcry stemming from the harsh methods employed by the South African government in the face of peaceful Indian protesters finally forced South African General Jan Christiaan Smuts to negotiate a compromise with Gandhi. Gandhi's ideas took shape and the concept of Satyagraha matured during this struggle