Tax-loss harvesting involves selling a security that has taken a loss in order to offset taxes on gains.