Directional control valves are one of the most fundamental parts in hydraulic machinery as well and pneumatic machinery. They allow fluid flow into different paths from one or more sources. They usually consist of a spool inside a cylinder, which is mechanically or electrically controlled.
The movement of the spool restricts or permits the flow, thus it controls the fluid flow.