Highly dispersed palladium nanoparticles encaged by micro-porous carbon exhibit excellent cycling performance towards the Heck cross-coupling reaction.