A ‘dissolving first and then reassembling’ way was presented for preparing an SN@SiO2 composite by the hybridization of an antistatic agent SN with diatomite. The colored antistatic agent was prepared by binding of the composite with a sulfonic dye. Also, it captured nonylphenol from wastewater, and the waste sludge produced was calcined to form mesoporous sieves.