The methylation of ethene by methyl chloride and methanol in the microporous materials SAPO-34 and SSZ-13 has been studied using different periodic atomistic modeling approaches based on density functional theory. The RPBE functional, which earlier has been used successfully in studies of surface reactions on metals, fails to yield a qualitatively correct description of the transition states under study. Employing B3LYP as functional gives results in line with experimental data: (1) Methanol is adsorbed more strongly than methyl chloride to the acid site. (2) The activation energies for the methylation of ethene are slightly lower for SSZ-13. Furthermore, the B3LYP activation energies are lower for methyl chloride than for methanol.