After leaving the Cabinet he resumed the practice of law until he was again elected, as a Whig, to the U.S. Senate and served from March 4, 1841, until May 1845, when he again resigned to accept an appointment to the supreme court of Georgia; again elected in 1845 to the United States Senate to fill the vacancy caused by his second resignation; reelected in 1846 and served from November 13, 1845, until May 28, 1852, when he resigned for the third time.