An electric fence is a barrier that uses electric shocks to deter animals or people from crossing a boundary. The voltage of the shock may have effects ranging from uncomfortable, to painful or even lethal. Most electric fencing is used today for agricultural fencing and other forms of animal control purposes, though it is frequently used to enhance security of sensitive areas, and places exist where lethal voltages are used.

Electrical perimeter fencing is slowly gaining popularity onto gated, guarded community, pairing with IP based CCTV for better control and remote monitoring.