Loaning money to family and friends is tricky business for many reasons. Taxes are among them. Funds received as proceeds of a loan aren’t taxable if the borrower is expected to pay it back.
However, the moment some or all of the debt is forgiven (doesn’t need to be paid back), the IRS will want its cut. This is true for loans from banks and other business entities — including foreclosures, repossessions, voluntary transfers of property to lenders, property good-faith loans between family and friends.