Who was the United States President during the Mexican-American War?

The United States President during the Mexican-American War was James K. Polk.