Docking and molecular dynamics simulations suggest that selectivity for the cancer-associated CA IX/XII over CA II is due to strong H-bond interactions in CA IX/XII, involving the tail orientated towards hydrophobic area of the active site. Here, CA9 is linked to cancer.