These findings define a host–microbe Trp–AHR–GPX4 axis that acts as a metabolic rheostat to restrain ferroptosis and may limit the efficacy of ferroptosis-based cancer therapies. Here, GPX4 is linked to cancer.