A convenient protocol for the multicomponent reaction (MCRs) between malononitrile with an orthoester and hydrazine derivatives, under acid catalyst is described. A series of aminocyanopyrazoles 4 was prepared, isolated and characterized. These pyrazoles reacted with sodium nitrite followed by secondary amine reagent and with formic acid to lead pyrazolotriazines 6 and pyrazolopyrimidinones 7. Some of the aminopyrazoles were converted to the corresponding sulfamides by reaction with sulfamoyl chloride. The aminopyrazoles incorporating phenyl and tosyl moieties were tested as inhibitors of four carbonic anhydrase (CA, EC 4.2.1.1) isoforms, the human (h) hCA I, II, IX and XII. Many of them showed low micromolar or submicromolar inhibition of these enzymes. The corresponding sulfamides were low nanomolar CA inhibitors.