An alkyl group can be added to a benzene molecule by an electrophile aromatic substitution reaction called the Friedel‐Crafts alkylation reaction. One example is the addition of a methyl group to a benzene ring.

The mechanism for this reaction begins with the generation of a methyl carbocation from methylbromide. The carbocation then reacts with the π electron system of the benzene to form a nonaromatic carbocation that loses a proton to reestablish the aromaticity of the system.