An underground pipe is a metal or plastic tube that runs below the surface of the ground and carries wastewater or other fluid away from a building. Underground pipes carry wastewater away from a building in order to reduce the potential for flooding, blockage, and contamination.