Receiving millions of acres of public lands from Congress, the railroads were assured land on which to lay the tracks and land to sell, the proceeds of which helped companies finance the construction of their railroads. Not all railroads were built with government assistance, however.