Pyrolysis of phenethyl phenyl ether confined in mesoporous silicas by covalent grafting results in significantly increased product selectivity compared with fluid phases.