It controls the flow of fluid through a pipe