Electric rail

Electric Fences are barriers of electrical energy that appear in the Mario series.

Mario Strikers series
In Super Mario Strikers and Mario Strikers Charged, Electric Fences appear around all of the soccer fields except for Thunder Island, in which they only appear at the corners. If players get tackled into the fence, they will be shocked temporarily. The fence cannot be seen; it is transparent until players run into it. Some options allow for either Electric Fences to be disabled or it to shock the player if they even go near the fence.

Super Mario Galaxy
Electric Fences appear in Super Mario Galaxy in the Flipswitch Galaxy, Sweet Sweet Galaxy, Battlerock Galaxy, Toy Time Galaxy, Sand Spiral Galaxy, Dreadnought Galaxy and Bubble Blast Galaxy, where they occasionally move horizontally throughout the galaxy and shock Mario and Luigi if contact is made. There are also beams of electricity in Dreadnought Galaxy that act similarly to Electric Fences. If Mario loses a life from an electric fence, he will turn into a skeleton. This effect is also seen briefly, if the player looks closely, when Mario takes damage after hitting one.

New Super Mario Bros. Wii
Electric Fences make one appearance in New Super Mario Bros. Wii. They appear in the second airship battle against Bowser Jr.. The player must knock Bowser Jr. into the fence three times in order to win. However, if Mario is pushed into the fence, he will take damage.

Super Mario Galaxy 2
In Super Mario Galaxy 2, Electric Fences appear in the Flip-Swap Galaxy, Space Storm Galaxy, and Grandmaster Galaxy. They retain their function and effect from the previous game.

Mario Party 8
In the Mario Party 8 minigame Power Trip, an electric fence is underneath the main platform.

Mario Party 9
In Mario Party 9, an Electric Fence surrounds the ring in the minigame Bumper Sparks.