The control over the formation of a bicomponent porous network was attained by self-assembly at the solid–liquid interface, exploiting triple H-bonds between melamine and bis-uracyl modules.