FELs operate by accelerating electrons to relativistic speeds using a particle accelerator. The electron beam is then directed through an undulator, where periodic magnetic fields cause the electrons to oscillate and emit synchrotron radiation. This emitted light is coherent and can be tuned to specific wavelengths by adjusting the electron beam energy or the magnetic field strength of the undulator.