Porous nitrogen-doped graphene layers encapsulating cobalt nanoparticles (NPs) were prepared by the direct pyrolysis process. The resulting hybrids catalyze the hydrogenation of diverse quinoline compounds to access the corresponding tetrahydro derivatives (THQs),