Electrostatic precipitators operate by applying a high voltage to a series of electrodes, creating an electric field. Particles in the gas stream become charged as they pass through this field and are then attracted to and collected on oppositely charged plates. The cleaned gas is then released, and the collected particles are periodically removed from the plates.