Overall, we found that matrix detachment modulates the epigenome during anoikis, inducing KDM6A/B that positively regulates the expression of SOX2, CD44, and HIF1α to regulate survival and stemness of cancer cells. Here, CD44 is linked to cancer.