Alkanes react with bromine in the presence of UV light, e.g. sunlight.

A hydrogen atom in the alkane is replaced by a bromine atom.

This is known as substitution.