In this study, we theoretically and experimentally demonstrated that valeric acid (VA) was a HDAC inhibitor, and anti-cancer efficacy of VA in prostate cancer cells was also observed using either 2D or 3D culture systems. Here, HDAC9 is linked to cancer.