A N, B co-doped carbon material exhibits excellent catalytic activity for an oxygen reduction reaction.