Targeted imaging agents work by attaching to specific biomarkers associated with diseases. These biomarkers could be proteins, nucleic acids, or other molecules that are over-expressed in diseased tissues. The nanoparticles are functionalized with ligands, such as antibodies or peptides, that have a high affinity for these biomarkers, ensuring that the imaging agents accumulate in the desired areas.