A magnetic chicane consists of four dipole magnets, giving electrons at the beginning of a bunch a longer path than electrons at the end of the bunch, thereby allowing the lagging electrons to catch up.