A termite electrocuting apparatus adapted to protect a structure with at least one vent opening and an access door from invading termites includes a step-up transformer, an AC/DC converter, at lease one wire mesh assembly connected to high DC voltage, and an on-off switch. The high voltage to the wire mesh assembly can be switched on and off in a highly reliable way to ensure safety when people are in proximity to the wire mesh assembly and to guarantee protection from invading termites. In particular, the switch device is integrated into the access door in such a way that the opening of the access door which happens when people need to get into the structure will automatically switch off the power to the high potential circuitry to remove the high potential hazard and the closing of the access door when people leaves the structure will automatically switch on the high potential circuitry to enable energized wire mesh assemblies to electrocute any termites that try to enter the structure.