Van Buren represented New York in the United States Senate from 1821 to 1828. He left the Senate to become the governor of New York in 1829. On March 5, 1829 after he became the governor, President Andrew Jackson made Van Buren the Secretary of State, so Van Buren was only the governor for two months.