A directional valve is a type of hydraulic or pneumatic control component that directs or controls the flow of fluid (oil, air, or other media) by switching flow paths. It determines the path of fluid flow in a hydraulic or pneumatic circuit, controlling the direction of motion of actuators like cylinders and motors.