In 1837 he became a lawyer, and he practiced law for over twenty years.