Nanomaterials are also used in various therapeutic applications. For instance, Gold nanoparticles can be used in photothermal therapy, where they generate heat upon exposure to light, selectively killing cancer cells. Magnetic nanoparticles can be used in hyperthermia treatment, where they produce localized heating when subjected to a magnetic field.