A tetraphenylethylene-derivative fluorescent probe for the one-step detection of histone deacetylases (HDAC) was developed. The deacetylation of the probe triggers electrostatic interaction between the molecules and automatically leads to fluorescence enhancement based on aggregation-induced emission (AIE).