Zeolites are the most commonly used catalysts for methanol-to-hydrocarbon (MTH) conversion. Here, we identified two oxygen-containing compounds as coke species in zeolite catalysts after MTH reactions. We investigated the possible influences of the oxygen-containing compounds on coke formation, catalyst deactivation, product selectivity, and the induction period of the MTH reaction through a series of controlled experiments in which one of the identified compounds (2,3-dimethyl-2-cyclopenten-1-one) was co-fed with methanol over a zeolite H-ZSM-5 catalyst. Our results allow us to infer that once produced, the oxygen-containing compounds block the Brønsted acid sites by strong chemisorption and their rapid conversion to aromatics expedites the formation of coke and thus the deactivation of the catalyst. A minor effect of the production of such compounds during the MTH reaction is that the aromatic-based catalytic cycle can be slightly promoted to give higher selectivity to ethylene.