Halogenation, the introduction of fluorine, chlorine, bromine or iodine into organic frameworks, underpins the synthesis of numerous pharmaceuticals, agrochemicals and functional materials.