It was the Homestead Act, but it didn't usually end up going that well because the land being sold was often very poor in soil nutrients. People would exploit the system by putting a crude little garden plot on their land, collecting benefits, and selling it.