Tax-loss harvesting involves selling securities at a loss to offset capital gains, reducing taxable income and potentially lowering overall tax liability.