Lenders take many factors into account when assessing your creditworthiness and determining whether you qualify for a loan. Some of those factors include:
Your credit score and credit history
Your debt-to-income ratio
The loan-to-value ratio (the loan amount versus the value of the property)