A thin-film forming method, which includes the steps of: (1) holding at least one object in a chamber; (2) depositing a film-forming material on the object; (3) etching the forming material while depositing is conducted. In the present invention, the depositing and etching are controlled to simultaneously conduct. The invention also disclose a system for performing the method.