The fence was set up to deter wild animals, particularly wild pigs, from damaging crops.