In medicine, nanoparticles are used for targeted drug delivery, where they can deliver drugs directly to diseased cells, reducing side effects. They are also used in imaging and diagnostics to improve the accuracy of medical tests and in surgical procedures to enhance precision.