27 shows a method of selectively irradiating the element isolation insulating layers with ultraviolet light.
The trench is filled with the element isolation insulating layer 60 in an initial condition before being irradiated with ultraviolet light and thus having substantially no stress.