a trench forming method for forming trenches without creating gouges at the boundary between a masking oxide film and a semiconductor layer and at the boundary between an oxide film insulating layer and the semiconductor layer , includes at least three etching steps each using , as the etching gas , one of at least two types of etching gases that respectively contain different components .