This lecture covers the design and function of bending magnets, quadrupoles, sextupoles, and their role in synchrotrons and x-ray free-electron lasers. It explains the concept of bend achromats, emittance values, and the transition from double-bend to multibend achromats. The lecture also discusses the challenges of using present-scale magnets and the advancements in magnet technology to achieve ultimate performance.