The planning fallacy is the systematic tendency to underestimate the time, cost, and risk of future projects, even when the person forecasting has direct, personal knowledge that similar past projects have consistently run over. This happens because planners naturally focus on the specific plan in front of them — the "inside view" — rather than the historical track record of similar projects generally, the "outside view," which is usually the far more accurate predictor.
The fallacy is remarkably resistant to being warned about it directly: knowing about the planning fallacy in the abstract rarely stops a planner from believing their own specific project is the exception, which is exactly why the corrective — deliberately consulting the outside view's track record before finalizing a forecast — has to be built into a process rather than left to individual willpower.