Title: History of U.S. foreign policy, 1829–1861
Content:  Democrat Andrew Jackson took office in 1829 after defeating incumbent President John Quincy Adams in the 1828 presidential election. For the key position of Secretary of State, Jackson chose Martin Van Buren of New York. Jackson inaugural cabinet suffered from bitter partisanship and gossip, especially between Secretary of War John Eaton, Vice President John C. Calhoun and Van Buren. In 1831, Senator Edward Livingston of Louisiana became Secretary of State and former Congressman Louis McLane of Delaware took the position of Secretary of the Treasury. At the start of his second term, Jackson transferred McLane to the position of Secretary of State. McLane resigned in 1834 and was replaced by John Forsyth of Georgia. Aside from the issue of Texas, foreign affairs under Jackson were generally uneventful, and his administration's foreign policy focused on expanding trade opportunities for American commerce.
Title: Andrew Jackson
Content:  Jackson departed from the Hermitage on January 19 and arrived in Washington on February 11. He then set about choosing his cabinet members. Jackson chose Van Buren as expected for Secretary of State, Eaton of Tennessee as Secretary of War, Samuel D. Ingham of Pennsylvania as Secretary of Treasury, John Branch of North Carolina as Secretary of Navy, John M. Berrien of Georgia as Attorney General, and William T. Barry of Kentucky as Postmaster General. Jackson's first choice of cabinet proved to be unsuccessful, full of bitter partisanship and gossip. Jackson blamed Adams in part for what was said about Rachel during the campaign, and refused to meet him after arriving in Washington. 
Title: Andrew Jackson
Content:  Andrew Jackson (March 15, 1767 – June 8, 1845) was an American lawyer, 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 the U.S. Congress. An expansionist 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 in the decade before the American Revolutionary War, Jackson became a frontier lawyer and married Rachel Donelson Robards. He served briefly in the United States House of Representatives and the 
Title: Presidency of Andrew Jackson
Content:  Instead of choosing party leaders for his cabinet, Jackson chose "plain businessmen" whom he intended to control. For the key positions of Secretary of State and Secretary of the Treasury, Jackson chose two Northerners, Martin Van Buren of New York and Samuel Ingham of Pennsylvania. He appointed John Branch of North Carolina as Secretary of the Navy, John Macpherson Berrien of Georgia as Attorney General, and John Eaton of Tennessee, a friend and close political ally, as Secretary of War. Recognizing the growing importance of the Post Office, Jackson elevated the position of Postmaster General to the cabinet, and he named 
Title: Presidency of Andrew Jackson
Content:  Donelson, served as the president's personal secretary, and wife, Emily, acted as the White House hostess. Jackson inaugural cabinet suffered from bitter partisanship and gossip, especially between Eaton, Vice President John C. Calhoun, and Van Buren. By mid-1831, all except Barry (and Calhoun) had resigned. Governor Lewis Cass of the Michigan Territory became Secretary of War, ambassador and former Congressman Louis McLane of Delaware took the position of Secretary of the Treasury, Senator Edward Livingston of Louisiana became Secretary of State, and Senator Levi Woodbury of New Hampshire became Secretary of the Navy. Roger Taney, who had previously served as the 
Title: Presidency of Andrew Jackson
Content:  The presidency of Andrew Jackson began on March 4, 1829, when Andrew Jackson was inaugurated as President of the United States, and ended on March 4, 1837. Jackson, the seventh United States president, took office after defeating incumbent President John Quincy Adams in the bitterly contested 1828 presidential election. During the 1828 presidential campaign, Jackson founded the political force that coalesced into the Democratic Party during Jackson's presidency. Jackson won re-election in 1832, defeating National Republican candidate Henry Clay by a wide margin. He was succeeded by his hand-picked successor, Vice President Martin Van Buren, after Van Buren won the 1836 presidential election. Jackson's presidency saw several important developments in domestic 
Title: Presidency of Andrew Jackson
Content:  dismissed from the cabinet before the end of 1833. Taney became the new Secretary of the Treasury, while Benjamin F. Butler replaced Taney as Attorney General. Jackson was forced to shake up his cabinet again in 1834 after the Senate rejected Taney's nomination and McLane resigned. John Forsyth of Georgia was appointed Secretary of State, Mahlon Dickerson replaced Woodbury as Secretary of the Navy, and Woodbury became the fourth and final Secretary of the Treasury under Jackson. Jackson dismissed Barry in 1835 after numerous complaints about the latter's effectiveness as Postmaster General, and Jackson chose Amos Kendall as Barry's replacement.
Title: Conservative Democrat
Content: Andrew Jackson, 7th President of the United States (1829–1837), United States Senator from Tennessee (1797–1798, 1823–1825), 1st Territorial Governor of Florida (1821), Justice of the Tennessee Supreme Court (1798–1804), and member of the United States House of Representatives from Tennessee's at-large congressional district (1796–1797), and major general in the United States Army, United States Volunteers, and Tennessee Militia. ; Franklin Pierce, 14th President of the United States (1853–1857), United States Senator from New Hampshire (1837–1842), member of the United States House of Representatives from New Hampshire's at-large congressional district (1833–1837), Speaker of the New Hampshire House of Representatives (1831–1833), member of the New Hampshire House of Representatives from Hillsborough (1829–1833), Town Meeting Moderator for Hillsborough, New Hampshire (1829–1836), brigadier general in the United States Army (1847–1848), and colonel in the New Hampshire Militia (1831–1847). ; Andrew Johnson, 17th President of the United States (1865–1869), 16th Vice President of the 
Title: 1833 in the United States
Content: President: Andrew Jackson (D-Tennessee) ; Vice President: vacant (until March 4), Martin Van Buren (D-New York) (starting March 4) ; Chief Justice: John Marshall (Virginia) ; Speaker of the House of Representatives: Andrew Stevenson (D-Virginia) ; Congress: 22nd (until March 4), 23rd (starting March 4)  {| class="wikitable collapsible collapsed" ! Governors and Lieutenant Governors
Title: Presidency of Andrew Jackson
Content:  General of Maryland, replaced Berrien as the U.S. Attorney General. In contrast to Jackson's initial choices, the cabinet members appointed in 1831 were prominent national leaders, none of whom were aligned with Calhoun. Outside of the cabinet, journalist Francis Preston Blair emerged as an influential adviser. At the start of his second term, Jackson transferred McLane to the position of Secretary of State, while William J. Duane replaced McLane as Secretary of the Treasury and Livingston became the ambassador to France. Due to his opposition to Jackson's removal of federal funds from the Second Bank of the United States, Duane 

Question: who was the secretary of state when andrew jackson was president?
Answer: Martin Van Buren.