Ice dams are often caused by poor insulation and ventilation, which allow heat to escape and melt snow on the roof. Proper insulation, ventilation, and ice and water shield installation can help prevent ice dams.