PURPOSE: To provide a hydraulic mechanism for performing the switching control of a plurality of hydraulic cylinders, which can be miniaturized by restricting the number of solenoid valves and also can be applied to effective use of the solenoid valves even if the number of switching control valves is increased.
CONSTITUTION: A hydraulic mechanism is provided with a plurality of hydraulic cylinders 7, 12, switching control valves 5, 9 respectively provided in correspondence with the hydraulic cylinders 7, 12, for performing switch-controlling respective hydraulic cylinders 7, 12, solenoid valves 20, 21 connected to oil chambers 16b, 18b on one side provided on one-side ends of spools 14, 15 of respective switch control valves 5, 9, for applying pilot pressure to the oil chamber 16b, 18b and one shared solenoid valve 23 connected commonly to oil chambers 16a, 18a on the other side of the spools 14, 15 in respective switch control valves 5, 9, and applying the pilot pressure to the abovementioned oil chambers 16a, 18b on the other side.