Problem to be solved: to provide a harmful insect invasion prevention system in which pedestrians and cars can smoothly pass through while avoiding harmful intrusion from the passage of the electric fence.An electric fence 12 is provided for dividing the harmful habitat area Ya and the protection area ha.The electric fence 12 has a passage 14 for passing the inside and outside road nd, and a gate device 16 is installed at the passage port 14.The gate device 16 includes an opening / closing member 18, and a driving mechanism 20 for causing an electric shock to the harmful beast contacting the opening / closing member 18, and a driving mechanism 20 for opening and closing the opening / closing member 18.A first passageway detecting device 22 capable of detecting a person approaching the passage 14 from the protection area ha side is distinguished from a harmful beast, and a second passageway detecting device 24 capable of detecting a person approaching the passage port 14 from the harmful animal habitat area Ya by distinguishing it from the harmful beast.A controller 26 is provided for controlling the operation of the driving mechanism 20 based on the detection result of the first and second traveler detecting devices 22 and 24.Diagram【課題】有害獣が電気柵の通行口から侵入するのを防止しつつ、歩行者や自動車が通行口をスムーズに通行できる有害獣侵入防止システムを提供する。【解決手段】有害獣生息エリアYAと保護エリアHAとを区画する電気柵12を備える。電気柵12は、内外通行道路NDを通すための通行口14を有し、通行口14にゲート装置16が設置される。ゲート装置16は、開閉部材18と、開閉部材18に接触した有害獣に電気衝撃を与える電撃手段と、開閉部材18を開閉駆動する駆動機構20とを備える。保護エリアHA側から通行口14に近づく人間を、有害獣とは区別して検出可能な第1の通行者検出装置22と、有害獣生息エリアYA側から通行口14に近づく人間を、有害獣とは区別して検出可能な第2の通行者検出装置24とを備える。第1及び第2の通行者検出装置22,24の検出結果に基づいて駆動機構20の動作を制御する制御装置26を備える。【選択図】図2