An electron rich porous metal–organic framework (MOF) has been synthesized, which acts as an effective heterogeneous catalyst for Diels–Alder reactions through encapsulation of the reactants in confined nano-channels of the framework. {\textcopyright} 2013 The Royal Society of Chemistry.