The qualified intermediary (QI) is the independent third party required by the IRS to act as the middleman in both the sale and purchase transactions. The QI cannot be the taxpayer, a descendant of the taxpayer, or an agent of the taxpayer (realtor, attorney, accountant, etc.). The QI’s role is to prepare the exchange documents, coordinate with the closing agents for each transaction, and escrow the funds.