Born in Columbus, Ohio in 1827, Latham was educated in classical studies at Jefferson College in Washington, Pennsylvania, graduating in 1845. Following his graduation, Latham moved to Russell County, Alabama, working briefly as a school teacher while studying law. He was admitted to the Alabama State Bar in 1848, working as Russell County's circuit court clerk for two years until 1850, when he relocated to San Francisco, California following the Gold Rush.