The lender's check that you can repay.
Underwriting is the review a lender runs before approving credit: income, employment, assets, credit history and debt-to-income ratio.
Pre-qualification is a soft estimate. Pre-approval follows partial underwriting. Full underwriting happens once there is a property or a firm application, and that is when conditions such as extra documentation appear.