The invention discloses a cloth-filling anti-detaching method, belongs to the field of optical system and electronics precise mechanical structure, and aims to solve the problems that the existing sealing method is to use an adhesive tape to seal, is poor in reliability, and particularly, when the adhesive tape is applied to the aerospace engineering, the spliced gum of the electric conducting adhesive tape after high and low temperature can be separated out. The cloth-filling anti-detaching method comprises the following steps: step 1, selecting strip-shaped cloth, utilizing a thread to carry out edge sewing on the two long sides of the cloth to form a concave long strip; step 2, utilizing the long strip formed in the step 1 to fill a gap, during the filling process, enabling the non-concave part of the concave long strip to be kept on the outer side of the gap after the gap is filled, and keeping the thickness greater than the width of the gap. The cloth adopted for sewing is selected from a conductive fabric, cotton cloth and the like. The sealing method disclosed by the invention avoids the use of glue, and the gap is filled with cloth by virtue of the physical structure of the cloth; the gap can be in irregularly geometric shape; if the special requirement is required, the conductive fabric can be used as the cloth.