If you are just starting your flooring research, you may be confused by the terms subfloor and underlayment. This is understandable because they both go under the floor you are shopping for. In most cases you need both. The subfloor is the structural flat area that rests on top of joists. See the diagram on follow on link. The underlayment is what goes in between the hard surface flooring and the supporting subfloor.