Ice dams form when snow on the roof melts, then refreezes at the eaves, potentially causing water damage to your home. To prevent ice dams, ensure that your attic is well-insulated and properly ventilated to minimize heat buildup, clean your gutters to allow water to flow freely, and consider installing ice and water shields or heat cables in areas prone to ice dam formation.