A hero from the Mexican-American War would go on to be the nation's twelfth president with no political background what-so-ever.