FRET works based on the principle of non-radiative energy transfer. When the donor molecule is excited by an external light source, it transfers its energy to the acceptor molecule through dipole-dipole coupling. The efficiency of this energy transfer depends on the inverse sixth power of the distance between the donor and acceptor molecules, making FRET a sensitive technique for measuring nanoscale distances.