Australia has the longest fence in the world. It is 5,614 km long, and was originally built to keep dingoes away from fertile land.