Photoreduction of CO2 to valuable fuels provides a promising strategy for managing the global carbon balance using renewable solar energy, yet the design of active, cost-effective, highly selective, and stable CO2 reduction photocatalysts remains a big challenge. Herein, we report a novel SiOC aerogel photocatalyst synthesized by a simple one-step sol-gel process, combined with the supercritical drying technique and heat treatment processes. The resulting SiOC aerogel exhibits a large BET specific area with typical hierarchical structures, which is responsible for the enhanced photocatalytic activity. In addition, the formation mechanism of the SiOC whisker aerogel is revealed in this study. The optimized SiOC aerogel exhibits CH4 and CO evolution activity of 5.8 and 20.5 μmol/g under simulated sunlight irradiation, respectively, without any additional co-catalyst or sacrificial agent, which is 6.4 and 3.9 times higher than those of the pristine SiC aerogel. The density functional theory (DFT) calculation confirms that the resulting SiOC aerogel can effectively adsorb and activate CO2 and H2O molecules on the catalyst surface. The Gibbs free energy diagram further verifies the superior performance of the resulting SiOC aerogel over the pristine SiC and SiO2 cluster via the rate-determining step calculations. The high efficiency of CO2 reduction can be attributed to the structural merits and the electronic structures modulation, which greatly achieves fast separation and transfer of charge carriers. The work paves an insight into the rational design of photocatalysts toward simultaneously facilitating carrier separation and CO2 activation from aerogel-based porous materials.