Mortgage insurance protects lenders in case the borrower defaults on the loan. It is often required for borrowers who make a down payment of less than 20%, helping them secure financing when they may not have a significant equity stake.