Due to the high velocity of the particles, and the resulting Lorentz force for magnetic fields, adjustments to the beam direction are mainly controlled by magnetostatic fields that deflect particles. In most accelerator concepts (excluding compact structures like the cyclotron or betatron), these are applied by dedicated electromagnets with different properties and functions. An important step in the development of these types of accelerators was the understanding of strong focusing. Dipole magnets are used to guide the beam through the structure, while quadrupole magnets are used for beam focusing, and sextupole magnets are used for correction of dispersion effects.