The principle behind photonic crystal waveguides is the creation of a photonic bandgap that acts like an optical insulator for certain wavelengths of light. When a defect or a line defect is introduced in the photonic crystal, it allows light of specific wavelengths to propagate through the defect, effectively guiding the light. This mechanism is similar to how electrons are controlled in semiconductor materials.