Terraria item ID 4422. Terraria 1.4.5.7.
The Grate is a foreground block which allows liquids to fall through while remaining solid for everything else, acting like a drainage system. Grates can be toggled open and closed when triggered via wire. An open Grate is transparent, allowing light and liquid through, while a closed Grate is opaque and acts as a solid block. If a Grate is triggered while liquid is passing through it, the Grate holds the liquid until it is opened again or the liquid is removed by a player, e.g. via the use of an Empty Bucket, Super Absorbant Sponge, or Dry Bomb.
Crafted at Iron Anvil / Lead Anvil. Ingredients:
Description from the Terraria Wiki.