AbstractCarbon nanomaterials have attracted much attention in the field of science and technology for their excellent properties; however, developing a simple, environmentally friendly, and versatile synthesis strategy for the preparation of carbon nanomaterials with novel structures remains a great challenge. Herein, a surfactant @ salt (dodecyltrimethylammonium bromide DTAB @ NaCl) self‐assembly strategy for the synthesis of carbon nanomaterials with novel structures, i.e., carbon nanoframes is reported. The synthesis differs from the traditional template method in that it is characterized by the introduction of surfactants for separation and protection, and the salt can be recycled. In addition, the carbon frame size in this system can be adjusted on demand by simply adjusting the concentration of surfactant, thus realizing that the carbon nanoframe size is adjustable in the range of 232.58–322.51 nm. Impressively, the carbon nanoframe has purple, blue, and green PL emission behavior. It is anticipated that this research will provide new insights into the development of novel carbon nanomaterials.