Minecraft wiki entry for Development_versions, associated text: Can be used to bind mobs to fences or lead them around.
Right-click mob first, then right-click fence or right-click the mob again to get the lead back.