In ESI, a high voltage is applied to a liquid sample flowing through a capillary tube. This results in the formation of a charged liquid spray, which produces charged droplets. As the solvent evaporates, these droplets shrink, leading to the formation of gas-phase ions. This process is highly efficient for ionizing large, non-volatile molecules, making it ideal for the analysis of biomolecules and nanoparticles.