The use of single-walled carbon nanotubes as effective nanoreactors for preparative chemical reactions has been demonstrated for the first time. Extreme spatial confinement of reactant molecules inside nanotubes has been shown to drastically affect both the regioselectivity and kinetics of aromatic halogenation reactions.