A dirt floor in a basement or crawl space can be a major source ... vapor from rising through the soil as ground moisture and into your home, causing expensive repairs down the line.
You first dig and shovel the dirt out, preferably until the substrate feels solid and compact. After this, lay several inches of gravel to prevent water from rising into the basement floor.