Lenders primarily assess how much of a mortgage you can afford based on your debt-to-income ratio. However, they also assume a risk when lending to any person, so they heavily factor in your history as a borrower. This is where your credit score comes into play. Even if you make sufficient income to afford a large loan, most lenders will deny a loan if you don’t have a credit history.