 He served as member of the State senate in 1871–1876 and served as president pro tempore in 1873–1876.He was professor of equity jurisprudence in the University of Alabama in 1875–1886.Martin was elected as a Democrat to the Forty-ninth Congress (March 4, 1885 – March 3, 1887).