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. Controversy also ensued because Peggy had married soon after her previous husband's death, and it was alleged that she and her husband had engaged in an adulterous affair while her previous husband was still living. Petticoat politics emerged when the wives of cabinet members, led by Mrs. Calhoun, refused to socialize with the Eatons.