John Tyler (March 29, 1790 – January 18, 1862) was the tenth president of the United States from 1841 to 1845 after briefly serving as the tenth vice president in 1841; he was elected vice president on the 1840 Whig ticket with President William Henry Harrison. Tyler ascended to the presidency after Harrison's death in April 1841, only a month after the start of the new administration. He was a stalwart supporter and advocate of states' rights, and he adopted nationalist policies as president only when they did not infringe on the powers of the states. He initially sought election to a full term as president, but he failed to gain the support of either Whigs or Democrats and withdrew in support of Democrat James K. Polk, who favored the annexation of Texas. Polk won the election, Tyler signed a bill to annex Texas three days before leaving office, and Polk completed the process.