The bespoke hydrogel effectively recapitulated the mechanical environment of prostate cancer, indicating the pivotal role of PI3K/NF-κB signaling in regulating prostate cancer malignancy under mechanical stimulation. This evidence concerns the gene NFKB1 and Familial prostate cancer.