Chromatin is a complex of DNA and proteins, primarily histones, found in the nucleus of eukaryotic cells. Its primary function is to efficiently package DNA into a small volume to fit into the nucleus of a cell and protect the DNA structure and sequence. Chromatin structure is dynamic and can change to either a more open or closed state, influencing the accessibility of the underlying DNA to various cellular machinery, thus impacting gene expression.