A compound and method for treating cancer, in particular prostate cancer. Id4 reverts mutant p53 activity to its wild type physiological status and activity. Id4 or its peptidemimatics are used to revert mutant p53 to wild type p53, restoring its tumor suppressor activity.