Carbon alloys consist of carbon atoms in multi-component systems with various structures and properties, which are examined at a microscopic level. These alloys are created by doping heteroatoms into hexagonal networks, intercalation between graphite sheets, and co-carbonization with organic precursors. These techniques modify atomic and electronic structures, leading to novel material properties.