A contract that insures the lender against loss caused by a mortgagor’s default on a government mortgage or conventional mortgage. Mortgage insurance can be issued by a private company or by a government agency.