Hugh J. Anderson was born in Wiscasset (in modern-day Maine, then a part of Massachusetts) on May 10, 1801.
He attended the local schools, moved to Belfast, Maine in 1815, and was employed as a clerk in his uncle's mercantile business.
Senator in 1847 but subsequently withdrew and moved to Washington D.C., where he served as commissioner of customs in the United States Treasury Department 1853-1858; appointed head of the commission to reorganize and adjust the affairs of the United States Mint at San Francisco, Calif., in 1857; returned to Washington 1859.
Sixth Auditor of the Treasury 1866-1869; retired from public life in 1880 and returned to Portland, Maine where he died May 31, 1881.
The couple had six children: He lost two sons before he died, and his wife followed him several months after his death.