Fence

A Fence is an object found in Super Mario World and in New Super Mario Bros.

Fences occasionally appear in Castles. Mario or Luigi can use them to go around traps like Lava. The brothers can jump, climb on and jump off of it as well. Climbing Koopas also appear to climb on the fence and move around as they can go around both sides of the fence. The brothers may also be able to punch on them to knock the Koopas that are on the other side and to flip to the other side by punching a square panel.

In Super Mario Sunshine, several fences were able to be used in the same way. Several of these created boxes, which enclosed enemies and coins, though some were flat, like those seen in previous games. These types of obstacles appeared in Ricco Harbor, Pinna Park and Pianta Village and can be used to knock off enemies from the other side.

They also reappear in New Super Mario Bros. Wii as obstacles in Towers and Castles.

Appearances in Other Media
A small Fence made a brief appearance as an obstacle in Neon Castle in the Super Mario World animated series episode "Mama Luigi". Mario, Luigi and Yoshi are able to easily pass this gate by simply using its revolving door.