Rapid coking and catalyst deactivation are significant problems during catalytic fast pyrolysis of biomass. Cellulose and lignin were found to coke via different mechanisms, resulting in two distinct types of catalyst deactivation. Lignin pyrolysis vapors cause coke formation mainly by external surface coking without limiting access to the active acid sites in the microchannels. Lignin deactivates the surface cracking capability of ZSM-5, resulting in unreacted primary vapors passing through while maintaining aromatization reactions. Cellulose pyrolysis vapors generate coke mainly as an extension of the aromatization reactions on the acid sites, which leads to occlusion of the internal acid sites. This deactivates the upgrading reactions, resulting in decreased aromatics formation, generating oxygenated intermediates and increased alkylation of one-ring aromatics and reduced multi-ring aromatics selectivity. Furthermore, the results indicate that the decrease in aromatics formation observed during catalytic pyrolysis of biomass is primarily caused by the coke generated from the polysaccharide components.