We designed an aptamer-based multifunctional ligand which, upon conjugation to the surface of upconversion nanoparticles (UCNPs), could realize phase transfer, covalent photosensitizer (PS) loading, and cancer cell targeting in one simple step. The as-built PDT nanodrug is selectively internalized into cancer cells and it exhibits highly efficient and selective cytotoxicity.