How old was Andrew Jackson when he got married?

Jackson was married in August 1791, age 24, to Rachel Donelson Robards. However, a technical problem about the validity of this marriage led to the ceremony being repeated in Jan 1794, when Jackson was 26.