An electric fence is a barrier that uses electric shocks to deter animals and people fromĀ crossing a boundary. The voltage of the shock may have effects ranging from discomfort to unconsciousness. The effects of the shock depend upon the voltage, the energy of the pulse, the degree of contact between the recipient and the fence and ground and the route of the current through the body; it can range from barely noticeable to uncomfortable, painful or even lethal.