ZrO2 and HfO2 nanoparticles are homogeneously dispersed in SiO2 matrices (supported film and bulk powders) by copolymerization of two oxozirconium and oxohafnium clusters (M4O2(OMc)12, M = Zr, Hf; OMc = OC(O)–C(CH3)CH2) with (methacryloxypropyl)trimethoxysilane (MAPTMS, (CH2C(CH3)C(O)O)–(CH2)3Si(OCH3)3). After calcination (at a temperature ≥800 °C), a silica matrix with homogeneously distributed MO2 nanocrystallites is obtained. This route yields a spatially homogeneous dispersion of the metal precursors inside the silica matrix, which is maintained during calcination. The composition of the films and the powders is studied before and after calcination by using Fourier transform infrared (FTIR) analysis, X‐ray photoelectron spectroscopy (XPS), secondary ion mass spectrometry (SIMS), and laser ablation inductively coupled plasma mass spectrometry (LA‐ICPMS). The local environment of the metal atoms in one of the calcined samples is investigated by using X‐ray Absorption Fine Structure (XAFS) spectroscopy. Through X‐ray diffraction (XRD) the crystallization of Hf and Zr oxides is seen at temperatures higher than those expected for the pure oxides, and transmission electron microscopy (TEM) shows the presence of well‐distributed and isolated crystalline oxide nanoparticles (5–10 nm).