The ECOA protects lenders from discrimination on the basis of race, gender, religion, national origin, marital status and any other factor unrelated to the loan itself. Lenders are only allowed to consider factors that will affect a borrower’s ability to repay the loan.