The title compound was obtained by the alkylation of methyl 5-(methylsulfonyl)indole-2-carboxylate (I) with 4-chlorobenzyl bromide (II) in the presence of KOH.