Made of the silicon oxide film, the mask 508 formed by the resist mask is a mask for exposing a portion of the crystalline silicon film 504 in order to carry out gettering of the present invention, and at the same time it is also a mask used for shaping the crystallized silicon film into an island shape in a later process.