Wood Fences are wall-like Structures exclusive to Don't Starve Together, introduced in A New Reign. They are located in the Structures Tab. It requires 3 Twigs and 1 Rope to make 6 Wood Fences. They are flammable and can be destroyed with a Hammer. Together with Wood Gates, they can be used both for decorative uses and for making a cage for a Mob. However, flying Mobs cannot be trapped using Wood Fences, as they will simply fly over it.
Fences seem to try to connect to adjacent fences, and rotate by a 45 degree angle every time. This allows for more practical placement.