A process of changing the chromatin structure and organization to control gene expression and DNA accessibility.