The Homestead Act was a significant piece of legislation enacted in 1862 that encouraged westward expansion by providing settlers with 160 acres of public land in exchange for a small fee and the requirement to improve the land over five years. This act played a crucial role in shaping population growth and territorial expansion, particularly in states like Florida, as it attracted thousands of settlers seeking new opportunities and farmland.