The quality of the underwriting process is critical for the successful business of lending. Complete automation of the process with a machine learning model that takes a decision significantly improved the loan portfolio quality and increased the speed of decision-making. We developed a model to predict events of borrower default. The model demonstrated superior to human performance and improved the health of the loan portfolio. It also enabled a loan borrower’s positive experience due to quick decisions on their loan application.