CGAS forms condensates on cytosolic double-stranded (ds)DNA and initiates inflammatory responses. Lueck et al. find that, although cGAS forms condensates on various nucleic acids, it enters a hydrogel-like state only with dsDNA via dimerization. The gel-like cGAS condensate not only protects bound dsDNA from exonucleases but also facilitates catalysis.