The invention relates to azacyclosubstituted hydrazide compounds and a preparation method and application thereof. The compound can selectively kill some cancer cells, has strong anticancer activity and can inhibit tumor growth.