CTCF (CCCTC-binding factor) binds sites around the mouse beta-globin locus that spatially cluster in the erythroid cell nucleus. We show that both conditional deletion of CTCF and targeted disruption of a DNA-binding site destabilize these long-range interactions and cause local loss of histone acetylation and gain of histone methylation, apparently without affecting transcription at the locus. Our data demonstrate that CTCF is directly involved in chromatin architecture and regulates local balance between active and repressive chromatin marks. We postulate that throughout the genome, relative position and stability of CTCF-mediated loops determine their effect on enhancer-promoter interactions, with gene insulation as one possible outcome.