Abstract Molecular carbon allotropes, cyclo[ n ]carbons (C n ) have attracted significant attention from both experimentalists and theoreticians due to their extraordinary properties 1-9 . Nevertheless, their synthesis in condensed phase is hardly achieved due to the high reactivity, resulting in the geometric and electronic structures of these species remaining largely unexplored. Recently, on-surface synthesis has emerged as an efficient method for the fabrication of various cyclocarbons, including C 18 10,11 , C 16 12 , C 14 13 , C 10 13 . However, endeavors to synthesize larger cyclocarbons (e.g., C 20 or C 24 ) have encountered difficulties owing to the unstability of precursor molecules 12 . Herein, we design a molecular precursor of a fully halogenated dibenzo[ b , h ]biphenylene (C 20 Cl 12 ), and successfully produce the anti-aromatic cyclo[20]carbon (C20), via tip-induced dehalogenation and accompanied ring-opening reactions on a bilayer NaCl/Au(111) surface at 4.7 kelvin. The polyynic structure of C 20 was revealed by bond-resolved atomic force microscopy (AFM) and theoretical calculations. Furthermore, by subtly positioning the C 20 molecule into an “atomic fence” (i.e., formed by Cl atoms) to block its diffusion, we have achieved to experimentally probe the frontier molecular orbitals of C 20 , with a measured bandgap of 3.8 eV. Our work demonstrates the versatility of such an on-surface synthesis strategy for the generation of cyclocarbons in the condensed phase, and for further characterizing their precise geometric and electronic structures.