Autophagy is a mechanism by which cellular material is delivered to lysosomes for degradation, leading to the basal turnover of cell components and providing energy and macromolecular precursors. Autophagy has opposing, context-dependent roles in cancer, and interventions to both stimulate and inhibit autophagy have been proposed as cancer therapies. This has led to the therapeutic targeting of autophagy in cancer to be sometimes viewed as controversial. In this Review, we suggest a way forwards for the effective targeting of autophagy by understanding the context-dependent roles of autophagy and by capitalizing on modern approaches to clinical trial design.