Valves are mechanical devices used to control, regulate, or direct the flow of fluids (liquids, gases, or slurries) within a piping system. They function by opening, closing, or partially obstructing flow passages and are essential in industries such as oil & gas, water treatment, power generation, and chemical processing.