Electrical discharge involves the flow of electric current through a medium, which can be a gas, liquid, or solid. In nanotechnology, this is often used in processes such as nanoelectrospray ionization for mass spectrometry or in the creation of nanoparticles via arc discharge methods. The electric field generated causes ionization and excitation, leading to the formation of plasma that can be used to manipulate materials at the atomic level.