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 Kasturbai 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.
On 4 September 1888, less than a month shy of his nineteenth birthday, Gandhi traveled to London, England, to study law at University College London and to train as a barrister. His time in London, the imperial capital, was influenced by a vow he had made to his mother in the presence of the Jain monk Becharji, upon leaving India, to observe the Hindu precepts of abstinence from meat, alcohol, and promiscuity.