To improve the performance of a CMISFET having a high-k gate insulating film and a
metal gate
electrode. An n-channel MISFET has, over the surface of a p-type well of a
semiconductor substrate, a gate
electrode formed via a first Hf-containing insulating film serving as a gate insulating film, while a p-channel MISFET has, over the surface of an n-type well, another gate
electrode formed via a second Hf-containing insulating film serving as a gate insulating film. These gate electrodes have a stack structure of a
metal film and a
silicon film thereover. The first Hf-containing insulating film is an insulating material film comprised of Hf, a
rare earth element, Si, O, and N or comprised of Hf, a
rare earth element, Si, and O, while the second Hf-containing insulating film is an insulating material film comprised of Hf, Al, O, and N or comprised of Hf, Al, and O.