What is the difference between mortgage insurance and homeowners insurance?

Mortgage insurance is an insurance policy that pays a lender if the borrower defaults on the mortgage. It is for the benefit of the lender. Homeowners insurance, however, is an insurance policy that protects the owner of the house and the lender in the event of a fire.