A magnetic chicane also called a bunch compressor helps form dense bunches of electrons in a free-electron laser. A magnetic chicane makes electrons detour slightly from their otherwise straight path, and in that way is similar to a chicane on a road.