The deed of trust is the document that transfers legal title to a property to the lender pending full repayment of the loan obligation.The document gives the lender the right to foreclose on the home if the borrower defaults.