Vorinostat works by inhibiting the activity of histone deacetylases, enzymes that remove acetyl groups from histone proteins. This inhibition leads to an accumulation of acetylated histones and proteins, resulting in changes in gene expression. These changes can induce cell cycle arrest, differentiation, and apoptosis (programmed cell death) in cancer cells.