The credit that is offered to a (mortgage) creditor to fund the mortgages while waiting for the lender to sell them in the secondary marketplace eventually is known as warehouse lending. Funds are used to pay for a mortgage that has been used by the borrower to buy a property.