A manifold-type solenoid valve comprises a main valve section and a
solenoid operating section. The main valve section has a spool in a valve
hole to which respective switching flow paths for supply, output, and
discharge are opened. The main valve section comprises connecting flow
paths for collective supply and/or collective discharge having connecting
ports, output ports, and an external port for connecting an external
piping for independent supply or independent discharge. The output ports
are in communication with the switching flow path for output. The
connecting flow paths for collective supply and/or collective discharge
are in communication with the switching flow path for supply and the
switching flow path for discharge. Additionally, the external port is in
communication with the switching flow path for supply or the switching
flow path for discharge.