An environmentally friendly soaping agent is disclosed. Preparation of the soaping agent includes: 1) preparing macroporous silicon dioxide, 2) preparing a chitosan solution, 3) immobilizing laccase and 4) preparing the soaping agent. The soaping agent is advantageous in that: (a) the soaping agent is free of acid washing, thus reducing environment pollution; (b) the soaping agent has excellent properties, namely, the soaping agent has good chelating, dispersing, suspending, and washing properties, and the soaping agent is capable of effectively removing flooding, protecting fabric from being contaminated by the flooding, guaranteeing the colour fastness, and making the color tune more bright and pure and the fabric surface cleaner; (c) the soaping agent can achieve low-temperature soaping, and is suitable for soaping at a temperature lower than 60 DEG C, excellent in anti-staining property and capable of reducing thermal loss; (d) foams are few; and (e) work hours are reduced and are only 30% of work hours of an original process, washing steps are largely reduced, the water using amount is only a quarter of an original water using amount, the process time is shortened, the cost and the treating load of waste water are reduced, and the pollution to the environment is reduced.