A fence acts as a barrier to keep your livestock or pets secure. While it may look only 1 block high, it’s actually 1.5 blocks high, therefore, it’s impossible to jump over one normally. They are also stackable and can be used to construct makeshift cages.