The function of a GFCI is to directly protect people from the potentially fatal hazards of electric shock that could occur if parts of an electrical appliance or tool they are using become energized due to a ground fault. The function of an AFCI is to provide protection against dangerous arc-faults that could initiate an electrical fire, potentially injuring people and damaging homes.