We have performed first-principles calculations to investigate the origin of adsorption of platinum on nitrogen- and boron-doped carbon nanotubes (CNTs). Our calculation results reveal that both nitrogen- and boron-doped CNTs can assist the reactivity of