In gene therapy, nanotechnology is used to deliver nucleic acids (DNA or RNA) into cells. Nanocarriers protect the genetic material from degradation and improve its uptake by target cells. This is essential for treating genetic disorders, cancers, and viral infections.