You can do tax harvesting when you have certain underperforming investments in your portfolio. By selling them at a loss, you can offset the profits gained from your performing investments.