The drug molecule Propranolol has been encapsulated by a sol–gel process in an organic–inorganic hybrid matrix by in-situ self-assembly; the 2D HETCOR solid state NMR spectroscopy provides direct proof of the intimate spatial relationship between the host matrix and guest drug molecules.