The youngest of three sons of Scotch-Irish immigrants, he grew up in rural South Carolina and attended local schools before leaving school to join the Army at age 13 during the American Revolution. He was in a battle and was later captured by the British, making him the only president to have been a prisoner of war.