Your credit score and credit history play a major role in your ability to obtain a mortgage. Mortgage lenders use your credit report to measure your risk as a borrower and determine your spending