The present invention discloses a compound shown in formula I or a stereoisomer, pharmaceutically acceptable salt, crystal form, solvate or isotopologue thereof. The compound of the present invention shows excellent inhibition activity against histone deacetylases, has remarkable inhibition effects on cancer cells, and provides a new choice of drugs used for the clinic treatment and diseases related to the abnormal activity of histone deacetylases.