A semiconductor device comprising a transparent base, a transparent insulator film A provided on a main surface of said transparent base and formed with a groove reaching said main surface, a gate electrode formed in said groove so that a surface of said gate electrode and a surface of said transparent insulator film A are substantially flush with each other, and a semiconductor layer provided over said gate electrode through a gate insulating film, wherein said gate insulating film comprises at least two layers and wherein at least one layer of said gate insulating film is a transparent insulator film B which has a main skeleton of repeating MO units and which has a composition comprising one kind or two or more kinds of oxides each represented by RxMOy [where R represents a non-hydrolyzable substituent, M represents one element selected from a group consisting of Si, Ti, Al, Zr, Zn, Sn, and In, x represents an integer of 0 to 3, and y satisfies the following formula:
- (m−x)/2<y<m−x−0.5 (m represents a valence of M)].