{{about|the barrier made out of wood or Nether brick|the fence-like barrier made out of stone types|Wall|the openable fence|Fence Gate}}
{{Block
| image = Oak Fence (EW).png
| extratext = View [[#Gallery|all renders]]
| transparent = Yes
| flammable = '''Overworld wood''': Yes (5)<br>'''All others''': No
| lavasusceptible = '''Overworld wood''': Yes<br>'''All others''': No
| light = No
| tool = axe
| tool2 = wooden pickaxe
| tntres = {{Blast resistance values|Wooden Fence}} <small>(Wood)</small><br>{{Blast resistance values|Nether Brick Fence}} <small>(Nether Brick)</small>
| renewable = Yes
| stackable = Yes (64)
}}
A '''fence''' is a barrier block that cannot normally be jumped over, similar to a [[wall]]. Unlike a wall, a player (but not [[mobs]]) can see through the openings in a fence.

== Obtaining ==
=== Breaking ===
Wooden fences are broken most quickly with an [[axe]], but drop when broken with any tool. Nether brick fences require a [[pickaxe]]; mining it with anything else destroys it and drops nothing.
{{breaking row|Fences; Nether Brick Fence|Axe; Pickaxe|Any; Wooden|link=none;none|textTrim=Fence}}

=== Natural generation ===
[[File:Mineshaft with fences.png|thumb|right|Fence blocks naturally generate as mineshaft supports.]]

; {{BlockSprite|Oak Fence|text=Oak}}
Oak fences generate as part of:
* Regular [[mineshaft]]s, as the uprights for the supports, where they are plentiful.
* Library rooms of [[stronghold]]s as railings and chandeliers. In the latter case, there are many [[torch]]es attached to them.
* Plains [[village]]s
* [[Woodland mansion]]s
* [[Shipwreck]]s

; {{BlockSprite|Spruce Fence|text=Spruce}}
Spruce fences generate as part of:
* [[Swamp hut]]s
* [[Taiga]] and [[snowy tundra]] [[village]]s, where they appear in tables, animal pen, butcher and shepherd houses, lantern lamp post, and other buildings.
* [[Shipwreck]]s

; {{BlockSprite|Birch Fence|text=Birch}}
Birch fences generate as part of:
* [[Woodland mansion]]s
* [[Shipwreck]]s

; {{BlockSprite|Jungle Fence|text=Jungle}}
Jungle fences generate as part of:
* Desert village armorer houses as the window.
* [[Shipwreck]]s

; {{BlockSprite|Acacia Fence|text=Acacia}}
Acacia fences generate as part of:
* [[Savanna]] villages, where they appear in tables, animal pen, butcher and shepherd house, stilt house buildings, and other buildings.
* [[Shipwreck]]s{{only|BE|short=1}}{{needs testing|Does not exist in java, can someone check in bedrock?|bedrock=1}}

; {{BlockSprite|Dark Oak Fence|text=Dark oak}}
Dark oak fences generate as part of:
* [[Mineshaft]]s generated in [[badlands]] biomes, as the supports.
* [[Woodland mansion]]s
* [[Shipwreck]]s
* [[Pillager outpost]]s, as part of watchtower, tent, cage, and scarecrow.
* [[Ancient city]]

; {{BlockSprite|Nether Brick Fence|text=Nether brick}}
Nether brick fences generate as part of:
* [[Nether fortress]]es, where they form window bars, balcony fencing, and portcullises.

=== Crafting ===
{{Crafting
|head=1
|name=[[Wood Fence]]
|ingredients=Matching [[Planks]] +<br>[[Stick]]
|A2=Matching Planks; Crimson Planks; Warped Planks
|B2=Stick 
|C2=Matching Planks; Crimson Planks; Warped Planks
|A3=Matching Planks; Crimson Planks; Warped Planks
|B3=Stick
|C3=Matching Planks; Crimson Planks; Warped Planks
|Output=Matching wood Fence,3; Crimson Fence,3; Warped Fence,3
|type=Decoration block
}}
{{crafting
|foot=1
|A2=Nether Bricks
|B2=Nether Brick
|C2=Nether Bricks
|A3=Nether Bricks
|B3=Nether Brick
|C3=Nether Bricks
|Output=Nether Brick Fence,6
|type=Decoration block
}}

== Usage ==
=== Barrier ===
[[File:FenceConnectivity.png|thumb|right|Fences and Nether brick fences connected by fence gates. Notice that they do not form a connection directly between the two types of fences (in the middle).]]
While fences appear to be a single block tall and have a hitbox height of one block, their collision box (for entities) is 1.5 blocks tall, meaning most mobs cannot jump over them without the Jump Boost [[status effect]]. They are transparent to light and have visual gaps in the model. [[Spiders]] can climb over a fence, just like any other vertical object.

A fence occupies the center space of blocks and automatically connects to any [[solid block]] that is placed next to it. Wooden fences connect to other wooden fences, but do not connect to Nether brick fences. However, Nether brick fences connect to wooden [[fence gate]]s.<ref>{{bug|MC-197992}}</ref>Mobs cannot pass between Nether brick fences and wooden fences, although players can.

=== Leads ===
[[File:HorseLeashedOnAFence.png|thumb|right|A horse tied to a tall fence post with a [[lead]].]]
Fences can be used to attach mobs with a [[lead]].

=== Fuel ===
Overworld wooden fences can be used as [[fuel]] in [[furnace]]s, smelting 1.5 items per block.

=== Note Blocks ===
Wooden fences can be placed under [[note block]]s to produce "bass" sound.

Nether brick fences can be placed under [[note block]]s to produce "bass drum" sound.

== Sounds ==
=== Normal wood ===
{{Sound_table/Block/Wood}}

=== Cherry wood ===
{{Sound table/Block/Cherry wood}}

=== Bamboo wood ===
{{Sound table/Block/Bamboo wood}}

=== Nether wood ===
{{Sound table/Block/Nether wood}}

=== Nether brick ===
{{Sound_table/Block/Nether_bricks}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showblocktags=y
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Oak Fence
|spritetype=block
|nameid=oak_fence
|blocktags=fences, wooden_fences
|itemtags=fences, wooden_fences}}
{{ID table
|displayname=Spruce Fence
|spritetype=block
|nameid=spruce_fence
|blocktags=fences, wooden_fences
|itemtags=fences, wooden_fences}}
{{ID table
|displayname=Birch Fence
|spritetype=block
|nameid=birch_fence
|blocktags=fences, wooden_fences
|itemtags=fences, wooden_fences}}
{{ID table
|displayname=Jungle Fence
|spritetype=block
|nameid=jungle_fence
|blocktags=fences, wooden_fences
|itemtags=fences, wooden_fences}}
{{ID table
|displayname=Acacia Fence
|spritetype=block
|nameid=acacia_fence
|blocktags=fences, wooden_fences
|itemtags=fences, wooden_fences}}
{{ID table
|displayname=Dark Oak Fence
|spritetype=block
|nameid=dark_oak_fence
|blocktags=fences, wooden_fences
|itemtags=fences, wooden_fences}}
{{ID table
|displayname=Mangrove Fence
|spritetype=block
|nameid=mangrove_fence
|blocktags=fences, wooden_fences
|itemtags=fences, wooden_fences}}
{{ID table
|displayname=Cherry Fence
|spritetype=block
|nameid=cherry_fence
|blocktags=fences, wooden_fences
|itemtags=fences, wooden_fences}}
{{ID table
|displayname=Bamboo Fence
|spritetype=block
|nameid=bamboo_fence
|blocktags=fences, wooden_fences
|itemtags=fences, wooden_fences}}
{{ID table
|displayname=Crimson Fence
|spritetype=block
|nameid=crimson_fence
|blocktags=fences, non_flammable_wood, wooden_fences
|itemtags=fences, non_flammable_wood, wooden_fences}}
{{ID table
|displayname=Warped Fence
|spritetype=block
|nameid=warped_fence
|blocktags=fences, non_flammable_wood, wooden_fences
|itemtags=fences, non_flammable_wood, wooden_fences}}
{{ID table
|displayname=Nether Brick Fence
|spritetype=block
|nameid=nether_brick_fence
|blocktags=fences
|itemtags=fences
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showaliasids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Oak Fence
|spritetype=block
|nameid=oak_fence
|aliasid=fence / 0
|id=85
|translationkey=tile.fence.name}}
{{ID table
|displayname=Spruce Fence
|spritetype=block
|nameid=spruce_fence
|aliasid=fence / 1
|id=-579
|translationkey=tile.spruceFence.name}}
{{ID table
|displayname=Birch Fence
|spritetype=block
|nameid=birch_fence
|aliasid=fence / 2
|id=-576
|translationkey=tile.birchFence.name}}
{{ID table
|displayname=Jungle Fence
|spritetype=block
|nameid=jungle_fence
|aliasid=fence / 3
|id=-578
|translationkey=tile.jungleFence.name}}
{{ID table
|displayname=Acacia Fence
|spritetype=block
|nameid=acacia_fence
|aliasid=fence / 4
|id=-575
|translationkey=tile.acaciaFence.name}}
{{ID table
|displayname=Dark Oak Fence
|spritetype=block
|nameid=dark_oak_fence
|aliasid=fence / 5
|id=-577
|translationkey=tile.darkOakFence.name}}
{{ID table
|displayname=Mangrove Fence
|spritetype=block
|nameid=mangrove_fence
|id=-491}}
{{ID table
|displayname=Cherry Fence
|spritetype=block
|nameid=cherry_fence
|id=-532}}
{{ID table
|displayname=Bamboo Fence
|spritetype=block
|nameid=bamboo_fence
|id=-515}}
{{ID table
|displayname=Crimson Fence
|spritetype=block
|nameid=crimson_fence
|id=-256}}
{{ID table
|displayname=Warped Fence
|spritetype=block
|nameid=warped_fence
|id=-257}}
{{ID table
|displayname=Nether Brick Fence
|spritetype=block
|nameid=nether_brick_fence
|id=113
|foot=1}}

=== Block states ===
{{see also|Block states}}
{{/BS}}

== Video ==
{{yt|y4NuuXH1VFM}}

== History ==
''For a more in-depth breakdown of changes to textures and models, including a set of renders for each state combination, see [[/Asset history]]''
{{History|java infdev}}
{{History||?|A prototype fence model has been added to the game. There are three defined states: north-south, east-west and a cross. These models are currently unused.}}
{{History|java alpha}}
{{History||v1.0.17|[[File:Oak Fence (EW) JE1.png|32px]] [[File:Oak Fence (item) JE1.png|32px]] Added fences. 
|Nothing can be placed on top of fences.
|Fences do not connect to solid [[block]]s.}}
{{History||v1.0.17_01|The [[player]] no longer starts with fences in their [[inventory]].{{needs testing|type=untestable}}}}
{{History|java beta}}
{{History||1.3|Standing on top of fences causing players to get stuck and crashing the server in multiplayer have now been fixed.}}
{{History||1.6|snap=Test Build 3|Fences are now flammable and the visibility of them has now been improved.{{info needed|what visibility? what is this supposed to mean?}}}}
{{History||1.7|[[File:Oak Fence (EW) JE2.png|32px]] [[File:Oak Fence (item) JE2.png|32px]] The application of textures to the fence model has been changed slightly.
|Any [[block]],{{verify|including stuff like mushrooms?}} including [[torch]]es and other fences, are now able to be placed on fences.}}
{{History||1.8|snap=Pre-release|Added [[village]]s and [[stronghold]]s, where wooden fences naturally generate.
|Dropped fence items no longer appear larger than normal blocks.}}
{{History||1.8.1|Fences now generate in [[mineshaft]]s.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease|[[File:Nether Brick Fence (EW) JE1.png|32px]] Added nether brick fences.}}
{{History|||snap=Beta 1.9 Prerelease 2|The collision boxes of fences have now been reduced.
|Fences now connect to solid [[block]]s.|Fences no longer require a solid block underneath to be placed.}}
{{History|||snap=Beta 1.9 Prerelease 5|Fence selection area has now been changed to match its collision box.
|[[File:Oak Fence (EW) JE3.png|32px]] The texture of planks was slightly changed, resulting in fences also changing appearance.}}
{{History|||snap=Beta 1.9 Prerelease 6|Fences no longer prevent [[farmland]] from decaying when placed below farmland.
|[[Axe]]s now break fences faster.}}
{{History||1.4.2|snap=12w36a|It is now possible to place [[pressure plate]]s on top of Nether brick fences.}}
{{History||1.4.4|snap=1.4.3|[[Mob]]s no longer try to jump over Nether brick fences.{{info needed|is this also the first for wood fences?}} 
|The texture of fences has now been fixed. There was a problem when attached single [[slab]] or [[stairs]] because the face not rendered when attached other [[block]]s.<ref>{{bug|MC-38}}</ref>}}
{{History||1.5|snap=13w06a|Fence corners now have a smaller collision box, allowing [[player]]s to fall through the gap in the middle of four fences placed in a square.}}
{{History||1.6.1|snap=13w16a|[[Mobs]] can now be tied to fences.}}
{{History|||snap=1.6|Fences now display a useless hand animation when right clicked.}}
{{History||1.8|snap=14w32b|Fences now have a new [[crafting]] recipe using 4 [[planks]] of the same type to produce 3 fences. Previously, it required six [[stick]]s in a 2×3 grid to produce 2.
  {{pipe escape|
    {| class{{=}}"wikitable collapsible collapsed"
    ! Old Recipe
    |-
    | {{crafting Table
      |A2=Stick|B2=Stick|C2=Stick
      |A3=Stick|B3=Stick|C3=Stick
      |Output=[Fence]Oak Fence,2
      }}
    |}
  }}
|[[File:Spruce Fence JE1 BE1.png|32px]] [[File:Birch Fence JE1 BE1.png|32px]] [[File:Jungle Fence JE1 BE1.png|32px]] [[File:Acacia Fence JE1 BE1.png|32px]] [[File:Dark Oak Fence JE1 BE1.png|32px]] Fences now vary in appearance based on the [[planks]] used to make them.
|"Fence" has now been renamed to "Oak Fence".}}
{{History||1.10|snap=pre1|The correct fence wood types now generate in [[village]]s.}}
{{History||1.11|snap=16w39a|Oak, birch and dark oak wood fences now generate in [[woodland mansion]]s.}}
{{History|||snap=16w39c|Fences now no longer show a useless hand animation when right clicked.}}
{{History||1.12|snap=17w15a|Fences now connect to the solid back sides of [[stairs]].}}
{{History||1.13|snap=17w47a|The oak fence ID has now been changed from <code>fence</code> to <code>oak_fence</code>.
|It is now possible to place a fence when the [[player]] is within a corner of three fences to form a ring of four, provided the space is sufficient.
|Prior to [[1.13/Flattening|''The Flattening'']], these [[block]]s' numeral IDs were 85, 113, 188, 189, 190, 191 and 192.}}
{{History|||snap=18w10c|[[Water]] can now be placed on the same block as fences.}}
{{History|||snap=18w11a|Fences now generate as part of the newly added [[shipwreck]]s.}}
{{History||1.14|snap=18w43a|[[File:Oak Fence JE3.png|32px]] [[File:Spruce Fence JE2.png|32px]] [[File:Birch Fence JE2.png|32px]] [[File:Jungle Fence JE2.png|32px]] [[File:Acacia Fence JE2.png|32px]] [[File:Dark Oak Fence JE2.png|32px]] [[File:Nether Brick Fence JE2.png|32px]] The textures of fences have now been changed.
|Nether brick fence recipe has now been changed to avoid conflict with the [[nether brick wall]] recipe.
  {{pipe escape|
    {| class{{=}}"wikitable collapsible collapsed"
    ! Old Recipe
    |-
    | {{crafting Table
      |A1=Nether Bricks|B1=Nether Bricks|C1=Nether Bricks
      |A2=Nether Bricks|B2=Nether Bricks|C2=Nether Bricks
      |Output=Nether Brick Fence,6
      }}
    |}
  }}
}}
{{History|||snap=18w47a|[[File:Oak Fence JE4 BE2.png|32px]] [[File:Spruce Fence JE3.png|32px]] [[File:Birch Fence JE3 BE2.png|32px]] [[File:Jungle Fence JE3 BE2.png|32px]] [[File:Acacia Fence JE3 BE2.png|32px]] [[File:Dark Oak Fence JE3 BE2.png|32px]] [[File:Nether Brick Fence JE3 BE4.png|32px]] The textures of fences have now been changed.}}
{{History|||snap=18w49a|Spruce fences now generate in the newly added [[snowy tundra]] villages.}}
{{History|||snap=18w50a|The updated [[desert]] villages now generate with jungle fences instead of oak fences.
|[[File:Spruce Fence JE4 BE2.png|32px]] The texture of spruce fences has now been changed.}}
{{History|||snap=19w03a|Wood fences can now be used to craft [[composter]]s.}}
{{History||1.15|snap=19w45a|Fences are no longer used to craft composters.}}
{{History||1.16|snap=20w06a|[[File:Crimson Fence JE1 BE1.png|32px]] [[File:Warped Fence JE1 BE1.png|32px]] Added crimson and warped fences.}}
{{History||October 16, 2021|link={{ytl|or1DfXdqu3U|t=916}}|Mangrove fences are shown at [[Minecraft Live 2021]].}}
{{History||1.19|snap=22w11a|[[File:Mangrove Fence JE1 BE1.png|32px]] Added mangrove fence.}}
{{History|||snap=22w13a|Dark oak fences now generate in [[Ancient City|ancient cities]].}}
{{History|||snap=22w14a|Due to the addition of the [[mangrove tree]] and [[mangrove swamp]], mangrove fences are now obtainable and renewable.}}
{{History||October 15, 2022|link={{ytl|https://youtu.be/iM9KtHaDcUg?t=5659}}|[[File:Bamboo Fence JE1 BE1.png|32px]] Bamboo fences were shown on [[Minecraft Live 2022]].}}
{{History||1.20<br>(Experimental)|link=1.19.3|snap=22w42a|[[File:Bamboo Fence JE1 BE1.png|32px]] Added bamboo fences behind the [[Java Edition 1.20|Update 1.20 experimental datapack]].|Added unique sounds for Nether and bamboo wood fences.}}
{{History||1.20<br>(Experimental)|link=1.19.4|snap=23w07a|[[File:Cherry Fence (EW) JE1.png|32px]] Added cherry fences behind the [[Java Edition 1.20|Update 1.20 experimental datapack]].}}
{{History||1.20|snap=23w12a|Bamboo and cherry fences are now available without using the aforementioned datapack.}}

{{History|pocket alpha}}
{{History||v0.2.0|[[File:Oak Fence JE2 BE1.png|32px]] Added fences.}}
{{History||v0.3.0|Survival players no longer start out with an infinite amount of fences in the inventory.}}
{{History||v0.9.0|snap=build 1|Fences now naturally spawn in [[stronghold]]s, [[mineshaft]]s and [[village]]s.
|Added smooth lighting to fences.}}
{{History||v0.10.0|snap=build 1|[[File:Spruce Fence JE1 BE1.png|32px]] [[File:Birch Fence JE1 BE1.png|32px]] [[File:Jungle Fence JE1 BE1.png|32px]] [[File:Acacia Fence JE1 BE1.png|32px]] [[File:Dark Oak Fence JE1 BE1.png|32px]] Added spruce, birch, jungle, acacia and dark oak variants.
|"Fence" has now been renamed to "Oak Fence".}}
{{History||v0.12.1|snap=build 1|[[File:Nether Brick Fence JE1 BE1.png|32px]] Added Nether brick fences.}}
{{History|||snap=build 12|[[Torch]]es can now be placed on top of Nether brick fences.}}
{{History||v0.14.0|snap=build 1|Spruce wood fences now generate in [[swamp hut|witch hut]]s.}}
{{History||v0.14.2|[[File:Nether Brick Fence BE2.png|32px]] The texture of Nether brick fences is now brighter.}}
{{History||v0.15.0|snap=build 1|[[Savanna]] villages now generate with acacia wood fences rather than oak fences.
|Spruce wood fences now generate in [[taiga]], [[snowy tundra]] and [[snowy taiga]] [[village]]s.}}
{{History|pocket}}
{{History||1.1.0|snap=alpha 1.1.0.0|Oak, birch and dark oak wood fences now generate in [[woodland mansion]]s.}}
{{History|bedrock}}
{{History||1.4.0|snap=beta 1.2.14.2|Wooden fences now generate in [[shipwreck]]s.}}
{{History||1.9.0|snap=beta 1.9.0.0|The recipe for Nether brick fences has now been changed to avoid conflict with the [[Nether brick wall]] recipe.}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Oak Fence JE4 BE2.png|32px]] [[File:Spruce Fence JE4 BE2.png|32px]] [[File:Birch Fence JE3 BE2.png|32px]] [[File:Jungle Fence JE3 BE2.png|32px]] [[File:Acacia Fence JE3 BE2.png|32px]] [[File:Dark Oak Fence JE3 BE2.png|32px]] [[File:Nether Brick Fence BE3.png|32px]] The textures of fences have now been changed.
|Dark oak fence gates now generate in [[pillager outpost]]s.
|Due to architecture changes, oak fences no longer generate in [[desert]] [[village]]s.
|Jungle fences now generate in desert village armorers.}}
{{History||1.16.0|snap=beta 1.16.0.51|[[File:Crimson Fence JE1 BE1.png|32px]] [[File:Warped Fence JE1 BE1.png|32px]] Added crimson and warped fences.}}
{{History|||snap=beta 1.16.0.63|[[File:Nether Brick Fence JE3 BE4.png|32px]] The texture of Nether brick fences now matches [[Java Edition]]'s again.}}
{{History||1.16.20|snap=beta 1.16.20.50|Crimson and warped fences now uses regular plank [[sound]]s instead of their stem variant sounds.}}
{{History||1.19.0|snap=beta 1.19.0.20|[[File:Mangrove Fence JE1 BE1.png|32px]] Added mangrove fence.}}
{{History||Next Major Update<br>(Experimental)|link=Bedrock Edition 1.19.50|snap=beta 1.19.50.21|[[File:Bamboo Fence JE1 BE1.png|32px]] Added bamboo fences behind the "[[Bedrock Edition 1.20|Next Major Update]]" [[experimental]] toggle.|Added unique sounds for Nether and bamboo wood fences.}}
{{History||Next Major Update<br>(Experimental)|link=Bedrock Edition 1.19.80|snap=beta 1.19.80.20|[[File:Cherry Fence (EW) JE1.png|32px]] Added cherry fences behind the "[[Bedrock Edition 1.20|Next Major Update]]" [[experimental]] toggle.}}
{{History||1.19.80|snap=beta 1.19.80.21|The different [[block states]] for the <code>fence</code> ID have now been split up into their own IDs.}}
{{History||1.20.0|snap=beta 1.20.0.21|Bamboo and cherry fences are now available without using the "Next Major Update" experimental toggle.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Oak Fence JE2 BE1.png|32px]] Added fences.}}
{{History||xbox=TU3|Fences are now stackable.}}
{{History||xbox=TU5|[[Pressure plate]]s are now placeable on fences.
|Fences can be found in the ''Miscellaneous'' tab in the [[Creative inventory]].}}
{{History||xbox=TU6|The fence collision box has now been decreased to size of fence [[block]].}}
{{History||xbox=TU7|[[File:Nether Brick Fence JE1 BE1.png|32px]] Added Nether brick fences.}}
{{History||xbox=TU19|xbone=CU7|ps=1.12|Moved fences from the the ''Miscellaneous'' tab, to the ''Building Blocks'' tab, in the [[Creative inventory]].}}
{{History||xbox=TU25|xbone=CU14|ps=1.17|[[File:Spruce Fence JE1 BE1.png|32px]] [[File:Birch Fence JE1 BE1.png|32px]] [[File:Jungle Fence JE1 BE1.png|32px]] Added spruce, birch, and jungle variants.
|The crafting recipe now uses 4 planks and 2 sticks instead of 6 sticks.
|"Fence" has now been renamed to "Oak Fence".}}
{{History||xbox=TU27|xbone=CU15|ps=1.18|[[File:Acacia Fence JE1 BE1.png|32px]] [[File:Dark Oak Fence JE1 BE1.png|32px]] Added acacia and dark oak fences to the [[Creative]] [[inventory]]. When they were actually added to the game is unknown.}}
{{History||xbox=TU31|xbone=CU19|ps=1.22|wiiu=Patch 3|Acacia doors and dark oak fences are now obtainable in [[survival]] mode.}}
{{History||xbox=TU54|xbone=CU44|ps=1.52|wiiu=Patch 24|switch=1.0.4|Fences now connect to the solid back sides of [[stairs]].}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Oak Fence JE4 BE2.png|32px]] [[File:Spruce Fence JE4 BE2.png|32px]] [[File:Birch Fence JE3 BE2.png|32px]] [[File:Jungle Fence JE3 BE2.png|32px]] [[File:Acacia Fence JE3 BE2.png|32px]] [[File:Dark Oak Fence JE3 BE2.png|32px]] [[File:Nether Brick Fence BE3.png|32px]] The textures of fences have now been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Oak Fence JE2 BE1.png|32px]] [[File:Spruce Fence JE1 BE1.png|32px]] [[File:Birch Fence JE1 BE1.png|32px]] [[File:Jungle Fence JE1 BE1.png|32px]] [[File:Acacia Fence JE1 BE1.png|32px]] [[File:Dark Oak Fence JE1 BE1.png|32px]] [[File:Nether Brick Fence JE1 BE1.png|32px]] Added fences.}}
{{History|foot}}

<gallery>
New Nether 2.jpg|First screenshot of nether brick fences released by [[Jeb]]. The Nether brick fences are visible on the side of the nether fortress bridges.
New Nether 2 bright.jpg|Brightly lit version.
Sea base fences.png|Underwater buildings with walls composed of stacked fences, before [[waterlogging]].
Pocket Edition v0.10.0 alpha build 1 Development fences.png|First screenshot of new types of fences in {{edition|PE}}
</gallery>

== Issues ==
{{issue list}}

== Trivia ==
* If a [[carpet]] is placed on top of a fence, a player can jump onto the carpet, while mobs cannot (except [[rabbit]]s).
** Placing a carpet on top of a fence does not reduce the fence or wall collision box down to one block, it just provides a platform one block high around the fence/wall to make it easier for climbing on the top of the fence.
* Getting hit by someone else (or shooting themselves with a Punch enchanted bow while sprinting forward) while in midair can cause the knockback to propel the player over a fence they would not be able to jump over normally.
* Projectiles get stuck in the collision box of the fence and remain there if shot from above.
* Bamboo fences are designed to resemble actual dried bamboo stems, unlike other fences that simply use their respective planks' textures.<ref>{{ytl|ghQODkq4ITI|Mojang Dev Comes To Hermitcraft! (Mojang Developer Gnembom Interview)|GoodVodsWithScar|June 23, 2023|t=2931}}</ref>

== Gallery ==
<gallery>
Oak Fence JE4 BE2.png|Oak Fence
Spruce Fence.png|Spruce Fence
Birch Fence.png|Birch Fence
Jungle Fence.png|Jungle Fence
Acacia Fence.png|Acacia Fence
Dark Oak Fence.png|Dark Oak Fence
Mangrove Fence.png|Mangrove Fence
Cherry Fence (EW).png|Cherry Fence
Bamboo Fence.png|Bamboo Fence
Crimson Fence.png|Crimson Fence
Warped Fence.png|Warped Fence
Nether Brick Fence.png|Nether Bricks Fence
</gallery>

=== Screenshots ===
<gallery>
Pressure plate.png|[[Pressure plate]]s on fences, which used to create tables.
Fences on Village House.png|Naturally occurring fences in a [[village]].
Passable 2-high fence.png|[[Mob]]s can jump onto this fence because of the red [[wool]]. Remove the red wool or replace the adjacent fence with a solid [[block]].
New Fences.png|All fence types before 1.20.
Netherfence-pre.jpg|A nondescript image of nether brick fences.
Sticky piston fence.gif|A fence block being pushed and pulled by a [[Piston|sticky piston]].
Grum Fences.png|First image of the new fences and fence gates added in 1.8.
</gallery>

=== Concept Art ===
<gallery>
Bamboo Wood and Fences Concept Art.png|Bamboo fences concept art.
</gallery>

== See also ==
* [[Fence Gate]]
* [[Cobblestone Wall]]

== References ==
{{Reflist}}

== External links ==
*[https://www.minecraft.net/en-us/article/block-month--fence Block of the Month: Fence] – Minecraft.net on December 1, 2022

{{Blocks|Building}}

[[Category:Generated structure blocks]]
[[Category:Nether blocks]]
[[Category:Manufactured blocks]]
[[Category:Utility blocks]]
[[Category:Flammable blocks]]

[[cs:Plot]]
[[de:Zaun]]
[[es:Valla]]
[[fr:Barrière]]
[[hu:Kerítés]]
[[it:Staccionata]]
[[ja:フェンス]]
[[ko:울타리]]
[[nl:Hek]]
[[pl:Płot]]
[[pt:Cerca]]
[[ru:Забор]]
[[th:รั้ว]]
[[uk:Паркан]]
[[zh:栅栏]]
