Efficient and selective electrocatalysts materials are currently needed for renewable energy conversion. This work studies the influence of internal channel modifications and the type of mesoporous silica that changes the electrocatalytic activities from the synthesized mesoporous carbon. Thus, MCM-41 and SBA-15 functionalized with amine (A) or diamine (D) groups and polyaniline (PANI) after pyrolysis produces derived mesoporous heteroatom-doped carbon that were evaluated as electrocatalyst in oxygen reduction reaction (ORR) for fuel cell systems. ORR can produce two types of products, allowing us to differentiate the main electrocatalytic activities of the synthesized mesoporous carbons. Therefore, the electrocatalytic results correlated the number of electrons transferred with the kind of ORR product generated. CS41/D/PANI, mesoporous carbon obtained from MCM-41 modified with diamine groups, was selective towards the production of H2O2 with 2.6 electrons transferred during the reaction while the CS41/A/PANI, mesoporous carbon obtained from MCM-41 modified with amine groups, presented high catalytic activity compared to Pt/C, leading to complete reduction of O2 to H2O. However, SBA-15 does not generate mesoporous carbons with selectivity for ORR. Then, this result is directly correlated with the influence that the mesoporous carbon suffered by the silica pore size and initial modification with amine or diamine groups. Finally, the chronoamperometry analysis demonstrated carbon materials with stability over a long period and high methanol tolerance compared with noble metals like Pt/C catalysts.