Coumarin and heterocyclic compounds incorporating urea have clinical applications as antiepileptics, diuretics, and antiglaucoma agents due to their carbonic anhydrase inhibitory properties. We investigated inhibition of carbonic anhydrase I and II with a series of coumarylthiazole derivatives containing urea/thiourea groups. All the investigated compounds exhibited inhibitory activity on both hCA I and hCA II, with 1-(3-chlorophenyl)-3-(4-(2-oxo-2H-chromen-3-yl)thiazol-2-yl)urea being the strongest inhibitor. Structure-activity relationship study showed that most of urea derivatives were more inhibiting for hCA I and hCA II than thiourea derivatives. The electron-withdrawing groups at the phenyl ring increased the inhibitory activity compared to electron-donating groups.