Due to their maximum atomic use of metal sites, single-atom catalysts (SACs) exhibit excellent catalytic activity in a variety of reactions. Although many techniques have been reported for the production of SACs, the construction of single atoms through a convenient strategy is still challenging. Here, we provide a facile method to prepare nickel SACs by utilizing the inherent confined space between the template and silica walls in template-occupied mesoporous silica KIT-6 (TOK). After the introduction of nickel-containing precursors into the inherent confined space of the TOK by solid-phase grinding, Ni SACs can be produced promptly during calcination. Single Ni atoms create a covalent Ni-O-Si structure in the TOK, as indicated by density functional theory (DFT) calculations and experimental data. This synthetic approach is easy to scale up, and 10 g of sample can be effortlessly synthesized using ball milling. The resultant Ni SACs were applied to the oxygen evolution reaction and exhibited higher catalytic activity and stability than the comparative sample synthesized in the absence of confined space.