President Polk President James K. Polk advocated westward expansion and presided over the Mexican-American War following the annexation of Texas in 1845.