He initially worked as a teacher, then he began to study law privately, first with help from a judge and then in the law firm of Seward, Porter, and Beardsley in Auburn, New York, a firm where he became a partner in 1837.