Inhibition of cGAS with the RU.521 compound reduces the severity of keratitis in mouse corneas, highlighting the detrimental role of the cGAS–STING pathway in this infection model, like in candidiasis. Here, CGAS is linked to infection.