A second Group III nitride compound semiconductor layer not doped with any impurities
or doped with n-type impurities or with n-type and p-type impurities is formed
on a first Group III nitride compound semiconductor layer doped with p-type impurities.
Resistance is reduced by a heat treatment after or during the formation of the
second Group III nitride compound semiconductor layer.