 Polk's campaign centered on his support for the annexation of the Republic of Texas, which had gained independence from Mexico in 1836.After Polk won the election, Congress passed legislation enabling the annexation of Texas, and Texas gained statehood in 1845.Polk and Scott had never liked one another, and their distrust deepened after Polk became president, partly due to Scott's affiliation with the Whig Party.