James Noble's death in 1831. Hanna became the third U.S. Senator from Indiana after statehood, with Noble and Waller Taylor preceding him in the office. Hanna served slightly longer than four months, from August 19, 1831, to January 3, 1832. After his return to Indianapolis, Hanna represented Marion County in the Indiana House of Representatives, where he served multiple terms: 1832–33 (Seventeenth Regular Session) and 1836–39 (Twenty-first, Twenty-second, and Twenty-third Regular Sessions). At the end of his political career Hanna represented Marion County in the Indiana Senate: 1840–41 (Twenty-fifty Regular Session) and 1842–46.