Si-doped and Si, N-codoped carbon nanomaterials exhibited much higher electrocatalytic activity and longer-term stability for the oxygen reduction reaction than non-doped carbon nanomaterials, due to the changes in net charges and the energy characteristics of the Si-containing carbon framework and the adsorption mode of oxygen.