The present invention relates to small molecule compounds and their use as HDAC inhibitors and in the treatment of various diseases, such as cancer. The present invention further relates to methods of synthesizing the compounds and methods of treatment. H − L(HA), H is a head group selected from (head group 1), (head group 2), (head group 3), (head group 4), (head group 5) and (head group 6).