Proper insulation, ventilation, and keeping gutters clean are key to preventing ice dams, which can cause water damage and roof leaks.