Ion thrusters function by ionizing a propellant (typically xenon) using an electrical discharge or radiofrequency. The resulting ions are then accelerated through an electrostatic field, generated by a pair of grids, creating a stream of ions that propels the spacecraft forward. This process is known as electrostatic propulsion.