This lecture covers the principles of insertion devices, such as wigglers and undulators, used in synchrotrons and x-ray free-electron lasers. It explains the general features, the K-parameter, and the Halbach array, comparing different source types based on brilliance and photon energy.