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. This evidence concerns the gene KDM6A and cancer.