A construction defect is a flaw or deficiency in the design, materials, or workmanship of a building or structure that can lead to problems or hazardous situations. This can include errors in design, materials, or labor that can cause the building to malfunction or be unsafe for use.