Silicon oxycarbides (SiOC) are an interesting alternative to state-of-the-art lithium battery anode materials, such as graphite, due to potentially higher capacities and rate capabilities. Recently, it was also shown that this class of materials shows great prospects towards sodium ion batteries. Yet, bulk SiOCs are still severely restricted with regard to their electrochemical performance. In the course of this work, a novel and facile strategy towards the synthesis of mesoporous and carbon-rich SiOC will be presented. To achieve this goal, 4,4′-bis(triethoxysilyl)-1,1′-biphenyl was sol–gel processed in the presence of the triblock copolymer Pluronic P123. After the removal of the surfactant using Soxhlet extraction the organosilica material was subsequently carbonized under an inert gas atmosphere at 1000 °C. The resulting black powder was able to maintain all structural features and the porosity of the initial organosilica precursor making it an interesting candidate as an anode material for both sodium and lithium ion batteries. To get a detailed insight into the electrochemical properties of the novel material in the respective battery systems, electrodes from the nanostructured SiOC were studied in half-cells with galvanostatic charge/discharge measurements. ... mehrIt will be shown that nanostructuring of SiOC is a viable strategy in order to outperform commercially applied competitors.