Due to their versatile features and environmental friendliness, functionalized carbon materials show great potential in practical applications, especially in energy conversion. Developing carbon composites with properties that can be modulated by simply changing the ratio of the original materials is an intriguing synthetic strategy. Here, we took cyanamide and multiwalled carbon nanotubes as precursors and introduced a facile method to fabricate a series of graphitic carbon nitride/carbon nanotubes (g-C3N4/CNTs) composites. These composites demonstrated different practical applications with different weight ratios of the components, that is, they showed synergistic effects in optoelectronic conversion when g-C3N4 was the main ingredient and in oxygen reduction reaction (ORR) when CNTs dominated the composites. Our experiments indicated that the high electrical conductivity of carbon nanotubes promoted the transmission of the charges in both cases.