HATs function by transferring an acetyl group from acetyl-CoA to specific lysine residues on histone tails. This acetylation diminishes the electrostatic attraction between the negatively charged DNA and the positively charged histones, resulting in a more open chromatin structure. This conformation is generally associated with transcriptional activation as it allows transcription factors and other regulatory proteins to access the DNA more easily.