The article focuses on the synthesis of pyrazole and triazole derivatives with ϒ-lactone ring through the reaction of hydrazide II and ethyl acetoacetate compounds. It states that the product formed by the compounds undergoes isomerization into aminopyrazolones through heating or through the use of a base catalyst. Moreover, the attempt to perform an analogous reaction with hydrazide II is also discussed.