Straightforward installation of carbon-halogen, carbon-oxygen and carbon-carbon bonds within metal-organic frameworks (MOF) via palladium-catalysed direct C-H functionalization.