Anti-CRISPR (Acr) proteins are encoded by phages and other mobile genetic elements and inhibit host CRISPR-Cas immunity using versatile strategies. AcrIIC4 is a broad-spectrum Acr that inhibits the type II-C CRISPR-Cas9 system in several species by an unknown mechanism. Here, we determined a series of structures of
Haemophilus parainfluenzae
Cas9 (HpaCas9)-sgRNA in complex with AcrIIC4 and/or target DNA, as well as the crystal structure of AcrIIC4 alone. We found that AcrIIC4 resides in the crevice between the REC1 and REC2 domains of HpaCas9, where its extensive interactions restrict the mobility of the REC2 domain and prevent the unwinding of target double-stranded (ds) DNA at the PAM-distal end. Therefore, the full-length guide RNA:target DNA heteroduplex fails to form in the presence of AcrIIC4, preventing Cas9 nuclease activation. Altogether, our structural and biochemical studies illuminate a unique Acr mechanism that allows DNA binding to the Cas9 effector complex but blocks its cleavage by preventing R-loop formation, a key step supporting DNA cleavage by Cas9.