Early life and background His father, Karamchand Gandhi (1822–1885), (who belonged to the Hindu Modh community), served as the diwan (a high official) of Porbander state, a small princely state in the Kathiawar Agency of British India. His grandfather was Uttamchand Gandhi, fondly called Utta Gandhi. His mother, Putlibai, who came from the Hindu Pranami Vaishnava community, was Karamchand's fourth wife, the first three wives having apparently died in childbirth. Growing up with a devout mother and the Jain traditions of the region, the young Mohandas absorbed early the influences that would play an important role in his adult life; these included compassion for sentient beings, vegetarianism, fasting for self-purification, and mutual tolerance between individuals of different creeds.
The Indian classics, especially the stories of Shravana and Maharaja Harishchandra from the Indian epics, had a great impact on Gandhi in his childhood. The story of Harishchandra, a well-known tale of an ancient Indian king and a truthful hero, haunted Gandhi as a boy. Gandhi in his autobiography admits that it left an indelible impression on his mind. He writes: "It haunted me and I must have acted Harishchandra to myself times without number." Gandhi's early self-identification with Truth and Love as supreme values is traceable to his identification with these epic characters.
In May 1883, the 13-year old Mohandas(Gandhi) was married to 14-year old Kasturbai Makhanji in an arranged child marriage, according to the custom of the region. Recalling the day of their marriage he once said that, "As we didn't know much about marriage, for us it meant only wearing new clothes, eating sweets and playing with relatives." However, as was also the custom of the region, the adolescent bride was to spend much time at her parents' house, and away from her husband. In 1885, when Gandhi was 15, the couple's first child was born, but survived only a few days; Gandhi's father, Karamchand Gandhi, had died earlier that year Mohandas and Kasturba had four more children, all sons: Harilal, born in 1888; Manilal, born in 1892; Ramdas, born in 1897; and Devdas, born in 1900. At his middle school in Porbandar and high school in Rajkot, Gandhi remained an average student academically. He passed the matriculation exam for Samaldas College at Bhavnagar, Gujarat with some difficulty. While there, he was unhappy, in part because his family wanted him to become a barrister.
Civil rights movement in South Africa (1893–1914
In South Africa, Gandhi faced the discrimination directed at Indians. 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. Travelling farther 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 several hotels. In another incident, the magistrate of a Durban court ordered Gandhi to remove his turban – which he refused to do. These events were a turning point in his life, awakening him to social injustice and influencing his subsequent 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 within the British Empire, 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