An aspect of the present invention is, for example, a semiconductor device having a transistor section which includes a trench gate type transistor, and a gate line section which includes a part provided between transistor sections, the device including a semiconductor substrate, a semiconductor layer formed on the semiconductor substrate, a base layer formed in the semiconductor layer, and provid