Tax-loss harvesting is the selling of stocks at a loss to offset a capital gains tax liability.