Primary amide derivatives as histone deacetylase inhibitors (HDACIs) are very rare. This paper describes the synthesis of primary amide derivatives (compounds 6 and 7) that have the requirements to be histone deacetylase inhibitors of the zinc-binding type. Both of them exhibited good cytotoxicity against the tested cancer cell lines with much lower cytotoxicity against normal cell line.