To develop an environment‐friendly detergent for textile relics adsorbing soil/rust stains, the relationship between surfactant types and concentrations, the nature of additives and the type of textile (e.g., cotton, linen, silk or wool) were systematically investigated. Results showed that the detergent formulations of sodium montmorillonite (5 g/L) as additives were overall the best options for soil stains removal on textile relics. Specifically, the most suitable surfactant for cotton, linen, silk and wool textiles relics adsorbing soil stains was rhamnolipid (8 g/L), tea saponin (6 g/L), tea saponin (8 g/L), alkyl glycosides (10 g/L), respectively. The detergent formulations of ascorbic acid (5 g/L) as additives were more beneficial for rust stains peeling‐off from the surface of the textile relics regardless of the type of surfactant and textile relics. But the optimal surfactants for different textiles relics were different. In detail, the most suitable surfactants for cotton, linen, silk and wool textiles relics adsorbing rust stains were separately rhamnolipid (10 g/L), Tea saponin (8 g/L), Tea saponin (6 g/L), Alkyl glycosides (6 g/L). This indicated that the washing effect of detergent formulation was related to the types of stains and textile relics' fiber. These findings not only demonstrated the necessity for developing detergent formulations for different textile relics, but also illustrated the complexity and diversity of the textile relics' stain‐washing work. Moreover, this work also assists understanding of the washing mechanism of textile relics and help the department of textile relics protection to properly wash textile relics and extend the life of textile relics.