HDACis work by preventing the deacetylation of histones, thereby maintaining an open chromatin structure and promoting the transcription of genes that can induce cancer cell cycle arrest, differentiation, and apoptosis. This action also affects non-histone proteins involved in cancer-related pathways, increasing the therapeutic potential of HDACis.