This review surveys recent work on the use of ionic liquids (ILs) and polymerized ionic liquids (PILs) as precursors to synthesize functional carbon materials. As solvents or educts with negligible vapour pressure, these systems enable simple processing, composition, and structural control of the resulting carbons under rather simple and green synthesis conditions. Recent applications of the resulting nanocarbons across a multitude of fields, such as fuel cells, energy storage in batteries and supercapacitors, catalysis, separation, and sorption materials are highlighted.