This work describes the use of silica particles obtained by sol-gel method as a template for deposition of supramolecular complexes of melamine cyanurate. To obtain SiO2@melamine-cyanurate (SiO2@MCA) material, the method of covalent modification of silica surface by melamine molecules (SiO2-mel) was applied and the method of its further functionalization by hydrogen-bonded organic framework of melamine-cyanurate (HOF, MCA) was proposed. One of the promising directions of using SiO2@melamine-cyanurate is obtaining the SiO2@g-C3N4 material based on it. Control of the amount of applied melamine-cyanurate allows one to potentially obtain g-C3N4 layers of different thicknesses on the silica surface.