After his military service, he served as mayor of Coloma, California, then was elected to the State Senate, where he stood out as a staunch abolitionist, reportedly having "secured the declaration in California's Bill of Rights that neither slavery or involuntary servitude, unless for the punishment of crimes, shall ever be tolerated in this state."[citation needed]