A pipe is a length of metal or plastic used to convey water, gas, oil, wastewater, or other fluid substances. It has a male end (the hub) and a female end (the tail). A tube is similar to a pipe but it has greater flexibility and can be narrower or wider in diameter. This makes it easier to transport fluids inside difficult spaces.