PURPOSE: To highly integrate a complementary MOS semiconductor device by a method wherein the complementary MOS semiconductor device is formed in a direction perpendicular to the surface of a semiconductor substrate.
CONSTITUTION: An N-channel MOS and a P-channel MOS which are extended individually to a direction perpendicular to the surface of a P-type semiconductor substrate 11 and which are faced with each other are formed on the sidewall of an opening part 13. A common gate electrode 22 is formed inside the opening part 13. Thereby, the area occupied by a gate oxide film on the surface of the semiconductor substrate is reduced. In addition, since the gate electrode formed in the opening part can be used as a gate electrode which is common to a first-conductivity-type MOS and a second-conductivity-type MOS, the area occupied by the gate electrode on the surface of the semiconductor substrate is reduced. Consequently, a complementary MOS semiconductor device can highly be integrated.