A series of novel pyrroles, pyrrolopyrimidines, pyrazolopyrrolopyrimidine, triazolopyrrolopyrimidines, tetrazolopyrrolopyrimidine, triazinopyrrolopyrimidines and pyrrolopyrimidotriazepines bearing the biologically active benzenesulfonamide moiety were synthesized by using pyrrole-o-amino-carbonitrile as key intermediate. All the synthesized compounds were evaluated for their in vitro carbonic anhydrase (CA, EC 4.2.1.1) inhibitory effects against the human (h) isoforms hCA I, II, IX and XII. Among the tested derivatives, compounds 16, 18 and 20-24 showed potent activity as inhibitors for the tumor associated transmembrane isoforms (hCA IX and XII) in the nanomolar and subnanomolar range, with high selectivity. All compounds underwent cytotoxic activity assays on human breast cancer cell line (MCF-7) showing effective activity, comparable to that of the clinically used drug doxorubicin.