We present a thorough computational study of transition metal-doped zeolite and aluminophosphate (AIPO) frameworks. The structural and electronic chemistry of the dopants is examined with ab initio quantum mechanical calculations, and the results correlated with the Bronsted and Lewis acid strength, and with the redox potential of the dopant ions in the framework. The energetics of doping is provided, and is employed to analyze the mode of dopant incorporation, and its site ordering in the microporous framework. In total, 23 dopant ions are examined in the isostructural framework of chabasite and AlPO-34. These cover most of the isomorphous framework replacements known to occur experimentally, but also framework replacements that have not yet been achieved. In this case, ab initio modeling techniques are employed in a predictive way. Finally, we present a computational study of the alkene epoxidation on titanosilicates, that covers the whole catalytic cycle. (C) 2003 Elsevier Inc. All rights reserved.