Photoaffinity labeling (PAL) has blossomed into a powerful and versatile tool for capture and identification of biomolecular targets. However, low labeling efficiency for specific targets such as lectins, the tedious process for protein purification, inevitable cellular photodamage, and less tissue penetration of UV light are significant challenges. Herein, we reported a near-infrared (NIR) light-driven photoaffinity labeling approach using upconverting nanoparticle (UCNP)-based photoactive probes, which were constructed by assembling photoactive groups and ligands onto NaYF4:Yb,Tm nanoparticles. The novel probes were easily prepared and functionalized, and the labeled proteins can be isolated and purified through simple centrifugation and washing. The advantages of this approach were demonstrated by labeling and isolation of peanut agglutinin (PNA), asialoglycoprotein receptor (ASGPR), and human carbonic anhydrase II (hCAII) from mixed proteins or cell lysates with good selectivity and efficiency, especially for PNA and ASGPR, two lectins that showed low binding affinity to their ligands. More importantly, successful labeling of PNA through pork tissues and ASGPR in mice strongly proved the good tissue penetrating capacity of NIR light and the application potential of UCNP-based photoactive probes for protein labeling in vivo. Biosafety of this approach was experimentally validated by enzyme, cell, and animal work, and we demonstrated that NIR light caused minimal photodamage to enzyme activity compared to UV light, and the UCNP-based photoactive probe presents good biosafety both in vitro and in vivo. We believe that this novel PAL approach will provide a promising tool for study of ligand-protein interactions and identification of biomolecular targets.