The presidency of John Tyler began on April 4, 1841, when John Tyler became President of the United States upon the death of President William Henry Harrison, and ended on March 4, 1845. Partly due to that issue, the 1844 election was won by Democrat James K. Polk. On March 1, 1845, three days before turning the presidency over to Polk, Tyler signed a Texas annexation bill into law, and Texas would be admitted as a state in the first year of Polk's presidency. Tyler agreed to support an effort to craft a compromise bank bill that would meet his objections, and the cabinet developed another version of the bill. Tyler's second veto infuriated Whigs throughout the country, inspiring numerous anti-Tyler rallies and angry letters to the White House. No major legislation would pass in the lame duck session of the 27th Congress or in the 28th Congress. Near the end of Tyler's term in office, on March 3, 1845, Congress overrode his veto of a minor bill relating to revenue cutters.