The first American settlers officially moved to Iowa in June 1833. Primarily, they were families from Ohio, Pennsylvania, New York, Indiana, Kentucky, and Virginia. On July 4, 1838, the U.S. Congress established the Territory of Iowa. President Martin Van Buren appointed Robert Lucas governor of the territory, which at the time had 22 counties and a population of 23,242.
Almost immediately after achieving territorial status, a clamor arose for statehood. On December 28, 1846, Iowa became the 29th state in the Union when President James K. Polk signed Iowa's admission bill into law. Once admitted to the Union, the state's boundary issues resolved, and most of its land purchased from the Indians. Iowa set its direction to development and organized campaigns for settlers and investors, boasting the young frontier state's rich farmlands, fine citizens, free and open society, and good government.