It is a legal term which covers who pays for what in the event of litigation. In a construction contract setting, generally, the owner will require the contractor to indemnify, defend and hold them...
A "hold harmless" clause, or an indemnification clause, whether in a document related to a divorce or otherwise, is a common contractual provision which generally says that A will hold B harmless...