Andrew Jackson (March 15, 1767 - June 8, 1845) was an American soldier and statesman who served as the seventh president of the United States from 1829 to 1837. Before being elected to the presidency, Jackson gained fame as a general in the United States Army and served in both houses of Congress. As president, Jackson sought to advance the rights of the "common man" against a "corrupt aristocracy" and to preserve the Union. Born in the colonial Carolinas to a Scotch-Irish family in the decade before the American Revolutionary War, Jackson became a frontier lawyer and married Rachel Donelson Robards.

In 1794, Jackson formed a partnership with fellow lawyer John Overton, dealing in claims for land reserved by treaty for the Cherokee and Chickasaw. Like many of their contemporaries, they dealt in such claims although the land was in Indian country. Most of the transactions involved grants made under the 'land grab' act of 1783 that briefly opened Indian lands west of the Appalachians within North Carolina to claim by that state's residents. He was one of the three original investors who founded Memphis, Tennessee, in 1819.  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 territory. 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 U.S. Representative. He was a member of the Democratic-Republican Party, the dominant party in Tennessee. Jackson soon became associated with the more radical, pro-French and anti-British wing. He strongly opposed the Jay Treaty and criticized George Washington for allegedly removing Republicans from public office. Jackson joined several other Republican congressmen in voting against a resolution of thanks for Washington, a vote that would later haunt him when he sought the presidency. In 1797, the state legislature elected him as U.S. Senator. Jackson seldom participated in debate and found the job dissatisfying. He pronounced himself "disgusted with the administration" of President John Adams and resigned the following year without explanation. Upon returning home, 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. 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.  After arriving in Tennessee, Jackson won the appointment of judge advocate of the Tennessee militia. In 1802, while serving on the Tennessee Supreme Court, he declared his candidacy for major general, or commander, of the Tennessee militia, a position voted on by the officers. At that time, most free men were members of the militia. The organizations, intended to be called up in case of conflict with Europeans or Indians, resembled large social clubs. Jackson saw it as a way to advance his stature. With strong support from western Tennessee, he tied with John Sevier with seventeen votes. Sevier was a popular Revolutionary War veteran and former governor, the recognized leader of politics in eastern Tennessee. On February 5, Governor Archibald Roane broke the tie in Jackson's favor. Jackson had also presented Roane with evidence of land fraud against Sevier. Subsequently, in 1803, when Sevier announced his intention to regain the governorship, Roane released the evidence. Sevier insulted Jackson in public, and the two nearly fought a duel over the matter. Despite the charges leveled against Sevier, he defeated Roane, and continued to serve as governor until 1809.

What did he do a attorney general?