A fence is a type of barrier against people or animals.