The manipulation of chromatin structure to open or close regions of DNA, thereby regulating gene expression.