Histones are essential for the compacting of DNA into chromatin. They help regulate gene expression by controlling the accessibility of DNA to transcription factors and other regulatory proteins. Histone modifications, such as methylation and acetylation, play a significant role in epigenetic regulation.