Electrophilic substitution reactions involve an electrophile replacing a functional group, typically a hydrogen atom, on an organic compound. There are two main types: electrophilic aromatic substitutions, where the electrophile replaces an atom in an aromatic ring, and electrophilic aliphatic substitutions, where the electrophile replaces a group on an aliphatic compound. Both proceed by a three step mechanism of electrophile generation, carbocation formation, and proton removal to restore aromaticity.