Here we synthesized silica-coated NaYF4:Yb,[email protected] nanoparticles with hypocrellin photosensitizers covalently incorporated inside the silica shells, combining dual modal imaging and photodynamic therapy (PDT) functions together. Under excitation at 980 nm, the tumor-targeting specificity of the as-prepared nanomaterials efficiently enhanced as folic acid (FA) was conjugated. The internalization of [email protected]@hypocrellin A-FA in HeLa cells and HEK-293 cells was observed by confocal microscopy and in vitro magnetic resonance imaging (MRI), which demonstrated that the as-prepared nanocomposites have the ability to target folate receptor (FR) (+) cells. Moreover, magnetic resonance (MR) measurements also demonstrated that the as-prepared nanocomposites could be used as a contrast agent for MRI. All these results showed the feasibility and potential of the as-prepared nanocomposites for simultaneous imaging and PDT application.