 During the War of 1812, he enlisted at age 18 as a volunteer in a Virginia militia company.He was soon selected to study for a regular Army commission, and was made an ensign of the 1st United States Infantry Regiment in July 1813.He chose to remain in the Army after the war, intending to make it his career.