His father, Karamchand Uttamchand Gandhi (1822–1885), served as the diwan (chief minister) of Porbandar state.Although he only had an elementary education and had previously been a clerk in the state administration, Karamchand proved a capable chief minister. During his tenure, Karamchand married four times.