Although autophagy controls cell death and survival, underlying mechanisms are poorly understood, and it is unknown whether autophagy affects only whether or not cells die or also controls other aspects of programmed cell death. MAP3K7 is a tumor suppressor gene associated with poor disease-free survival in prostate cancer. Here, we report that Map3k7 deletion in mouse prostate cells sensitizes to cell death by TRAIL (TNF-related apoptosis-inducing ligand). Surprisingly, this death occurs primarily through necroptosis, not apoptosis, due to assembly of the necrosome in association with the autophagy machinery, mediated by p62/SQSTM1 recruitment of RIPK1. The mechanism of cell death switches to apoptosis if p62-dependent recruitment of the necrosome to the autophagy machinery is blocked. These data show that the autophagy machinery can control the mechanism of programmed cell death by serving as a scaffold rather than by degrading cargo.