A semiconductor device such as an LSI is formed by subjecting a semiconductor wafer to various types of processing and treating operations, e.g., coating of a photoresist, development of the photoresist, etching, ion implantation, removal of the photoresist, and deposition of a film.