A series of metal- and silica-containing carbon-based nanocomposites were synthesized by pyrolysis of a resorcinol–formaldehyde polymer modified with metal oxide/silica nanocomposites (MxOy/SiO2, where M = Mg, Mn, Ni, Cu and Zn) via the thermal oxidative destruction of metal acetates adsorbed on highly dispersed silica (A380). The concentration of metals was 3.0 mmol/g SiO2. The phase composition and morphological, structural and textural properties of the carbon materials were analyzed by X-ray diffraction, SEM, Raman spectroscopy and low-temperature N2 adsorption. Thermal decomposition under a nitrogen atmosphere and in air was analyzed using TG–FTIR and TG–DTG–DSC techniques to determine the influence of the filler on the decomposition process. The synthesized composites show mesoporous structures with high porosity and narrow pore size distributions. It could be shown that the textural properties and the final composition of the nanocomposites depend on the metal oxide fillers of the precursors. The data obtained show that nickel and copper promote the degree of graphitization and a structural order with the highest porosity and largest specific surface area of the hybrid composites. The good adsorption properties of the obtained materials were shown for the recovery of p-chlorophenol and p-nitrophenol from aqueous solutions.