The invention discloses a double-color all-optical switch based on a quantum well inter-subband transition cavity-induced coherence effect, and belongs to the technical field of semiconductor materials. According to the structure of the double-color all-optical switch, an AlAs layer (2), a first barrier layer (3), a first quantum well layer (4), a second barrier layer (5), a second quantum well layer (6), a third barrier layer (7), a third quantum well layer (8), a fourth barrier layer (9) and a continuous area (10) sequentially grow on a substrate (1) made of GaAs materials, a cycle is from the first barrier layer (3) to the continuous area (10), six to fifteen cycles are arranged, and then a covering layer (11) and an air isolation layer (12) are provided. The double-color all-optical switch based on the quantum well inter-subband transition cavity-induced coherence effect can work at a medium-far infrared wave band, serves as a complete band gap switch of an infrared radiation source with low energy consumption and high efficiency, and has application value on the aspects of satellite detection and communication. The structure and materials of the double-color all-optical switch can be selected artificially, and the double-color all-optical switch has the advantages of easily achieving a wide wave band, miniaturization and integration.