A three-dimensional (3D) carbon quantum dot (CQD) aerogel has been prepared by in situ assembling CQDs in the sol-gel polymerization of resorcinol (R) and formaldehyde (F) and subsequently pyrolyzing the formed CQD gel. Compared to the supercapacitor based on the CQD-free aerogel, the supercapacitor fabricated with the CQD aerogel showed 20-fold higher specific capacitance (294.7 F g(-1) at the current density of 0.5 A g(-1)) and an excellent stability over 1000 consecutive charge-discharge cycles.