 In 1842, he unsuccessfully contested the election of Thomas W. Gilmer, but eventually got the seat when Gilmer resigned early, serving again from 1844 to 1845.He later returned for a third time serving from 1847 to 1849, serving as chairman of the Committee on Post Office and Post Roads.In 1859, Goggin ran for Governor of Virginia, but lost to John Letcher.