Understanding the adsorption interactions between carbon materials and sulfur compounds has far‐reaching impacts, in addition to their well‐known important role in energy storage and conversion, such as lithium‐ion batteries. In this paper, properties of intrinsic B or Si single‐atom doped, and B–Si codoped graphene (GR) and graphdiyne (GDY) were investigated by using density functional theory‐based calculations, in which the optimal doping configurations were explored for potential applications in adsorbing sulfur compounds. Results showed that both B or Si single‐atom doping and B–Si codoping could substantially enhance the electron transport properties of GR and GDY, improving their surface activity. Notably, B and Si atoms displayed synergistic effects for the codoped configurations, where B–Si codoped GR/GDY exhibited much better performance in the adsorption of sulfur‐containing chemicals than single‐atom doped systems. In addition, results demonstrated that, after B–Si codoping, the adsorption energy and charge transfer amounts of GDY with sulfur compounds were much larger than those of GR, indicating that B–Si codoped GDY might be a favorable material for more effectively interacting with sulfur reagents.