The invention discloses a preparation method and an application of a silicate long afterglow probe. Mesoporous silicon dioxide is used as a template, zinc nitrate, gallium nitrate, germanium nitrate,ytterbium nitrate, chromic nitrate and erbium nitrate are used as doped metal raw materials, the doped metal raw materials are dissolved in water and uniformly mixed, the mixture is dropwise added into the mesoporous silicon dioxide, roasting is performed at high temperature, and a pre-product is obtained after roasting is finished; then, functional modification is performed on the surface of thepre-product, and hydroxylation, amination and PEG modification are sequentially performed to obtain a modified pre-product; and finally, a photosensitizer silicon dichloride phthalocyanine is loaded to obtain the silicate long afterglow probe. The silicate long-afterglow probe has good biological safety, after caudal vein injection and under X-ray irradiation, a tumor area is effectively enriched,deep in-situ tumor imaging is achieved, in-situ tumor cells are seriously killed, and finally diagnosis and treatment integration of the silicate long-afterglow probe on deep tumors is achieved.