FELs work by accelerating electrons to near-light speeds using a linear accelerator. These electrons then pass through an undulator, a series of magnets with alternating poles, which causes them to oscillate and emit synchrotron radiation. The coherent and high-intensity nature of this radiation is what sets FELs apart from other light sources.