In organic chemistry, halogenation is the reaction of a halogen with another substance in which a halogen atom ends up as part of that substance.
There are two types of halogenation.
An example is the addition of bromine to ethane.
Halogens react with alkanes under the influence of heat or light to form alkyl halides.
The halogen atom replaces a hydrogen atom in the alkane, so this is a substitution reaction.
Aromatic compounds undergo halogen substitution reactions in the presence of Lewis acids.
Here's a video on the halogenation of alkanes.