After moving to Nashville, Jackson became a protege of William Blount , a friend of the Donelsons and one of the most powerful men in the state. Jackson became attorney general in 1791, and he won election as a delegate to the Tennessee constitutional convention in 1796.  When Tennessee achieved statehood that year, he was elected its only . Representative . The following year, the state legislature elected him as . Senator . He resigned within a year. While in Philadelphia, then the nation's capital, Jackson aligned himself with the Democratic-Republican Party , and he strongly opposed the Jay Treaty .  In 1798, with strong support from western Tennessee, he was elected to serve as a judge of the Tennessee Supreme Court ,  at an annual salary of $600.  Jackson's service as a judge is generally viewed as a success and earned him a reputation for honesty and good decision making.  Jackson resigned the judgeship in 1804 and returned full-time to his business interests. His official reason for resigning was ill health. He had been suffering financially from poor land ventures, and so it is also possible that he wanted to return full-time to his business interests.