A novel hydrothermal approach to synthesize fluorescent carbon nitride dots derived from ionic liquids has been reported. In comparison with previous methods, this method bears several unique merits, such as being clean, cheap, convenient and having a potential to advance large-scale industrialization.