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 the U.S. Congress. 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. In 1836, Jackson established the ten-hour day in national shipyards.Jackson enforced the Tenure of Office Act, signed by President Monroe in 1820, that limited appointed office tenure and authorized the president to remove and appoint political party associates.