The present invention provides histone deacetylase inhibitors of general formula (I), process for the preparation of such compounds and uses of the compounds in medicine.