Problem to be solved: to provide a heterocyclic compound useful for the treatment of central nervous system disease including the neurodegenerative disease with HDAC inhibitory action and medicine containing it.The present invention relates to an equation (I):Each symbol is defined in the specification. ]It relates to a compound or salt thereof.No selection【課題】HDAC阻害作用を有し、神経変性疾患を含む中枢神経疾患等の治療に有用な複素環化合物及びそれを含有する医薬を提供する。【解決手段】本発明は、式(I):[式中、各記号は明細書中で定義した通りである。]で表される化合物またはその塩に関する。【選択図】なし