Water is formed and added in the conversion of methanol to hydrocarbons, slowing down both the reaction and deactivation rates. The retained species that are reaction intermediates and coke precursors are swept/desorbed, particularly those on silanol sites.