Confinement effects on water, benzene and pyridine in mesoporous carbon materials were probed by 1H-MAS NMR and chemical shift calculations.