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. As president, Jackson sought to advance the rights of the 'common man' against a 'corrupt aristocracy' and to preserve the Union. When Andrew refused to clean the boots of a British officer, the officer slashed at the youth with a sword, leaving him with scars on his left hand and head, as well as an intense hatred for the British. Robert also refused to do as commanded and was struck with the sword. The two brothers were held as prisoners, contracted smallpox, and nearly starved to death in captivity.Later that year, their mother Elizabeth secured the brothers' release.