He was admitted to the bar in 1850 and commenced practice in Exeter, New Hampshire.
He moved to Brunswick, Maine and married Alice McKeen Dunlap, and continued the practice of law.
He lived in the John Dunlap House, also known as the Gilman Mansion.
He served as delegate to the Republican National Convention in 1860.
He was interested in introducing waterworks and other public improvements.