A Lewis acid catalyst functions by accepting an electron pair, making the electrophile more susceptible to nucleophilic attack. In the case of Friedel-Crafts alkylation, for example, AlCl3 reacts with an alkyl halide to form a complex, which then generates a carbocation. This carbocation can readily attack the aromatic ring, leading to the formation of the alkylated product.