A compound of formula (I), having histone deacetylase 6 (HDAC6) inhibitory activity,wherein X, Q, N, R1, R2, L, and n are as described, isomers thereof, or pharmaceutically acceptable salts thereof, the use thereof for the preparation of therapeutic medicaments, pharmaceutical compositions comprising the same, a method of treating disease using the composition, and methods for preparing the novel compounds. The novel compounds according to the present invention have histone deacetylase 6 (HDAC6) inhibitory activity, and are effective for the prevention or treatment of HDAC6-associated diseases, including cancer, inflammatory diseases, autoimmune diseases, neurological diseases and neurodegenerative disorders.