Breast cancer (BC) relapse and metastasis are the leading cause of death and, together with drug resistance, keep mortality still high. The Hedgehog (Hh) pathway is expressed during embryogenesis, organogenesis and in adult tissue homeostasis and its aberrant activation is often associated with cancer. Carbonic anhydrase (CA) enzymes are important during development; they play a key role in controlling several cellular mechanisms, such as pH regulation, survival, and migration, and they are aberrantly expressed in cancer. The goal of this study was to investigate the interplay between the Hh pathway and CAXII in terms of BC cell migration. We here demonstrated that smoothened (SMO) silencing resulted in a reduction of CAXII expression at mRNA and protein level. This led to a decrease in cell migration, which was restored when cells were treated with an SMO agonist, Sag dihydrochloride (SAG), but not when cells were cotreated with SAG and the CAs inhibitor Acetazolamide. This suggested that the ability of SAG to promote cell migration was impaired when CAXII was inhibited. The reduction was also confirmed within hypoxic and inflammatory microenvironment, typical of BC, indicating a key role of the Hh pathway in controlling CAXII expression. Our results may contribute to further understand the physiology of BC cells and indicate that the Hh pathway controls BC cell migration and cell invasion also through CAXII, with important implications in identifying novel therapeutic targets.