An optical switch, wherein the optical switch is disposed on a substrate, and the optical switch comprises a first waveguide, a second waveguide, and a first movable waveguide; the first waveguide is immovable relative to the substrate, and the first waveguide has a first input port IP1 and a first output port OP1; the second waveguide is immovable relative to the substrate, the second waveguide has a second output port OP2, the first waveguide and the second waveguide are located in a first plane, and the first waveguide and the second waveguide do not intersect; the first movable waveguide is movable relative to the substrate; when the first movable waveguide is at a first location (i) the first movable waveguide and the first waveguide are optically decoupled, and the first movable waveguide and the second waveguide are optically decoupled; and (ii) the IP1 and the OP1 are optically connected, and the IP1 and the OP2 are optically disconnected; and when the first movable waveguide is at a second location (i) the first movable waveguide and the first waveguide are optically coupled, and the first movable waveguide and the second waveguide are optically coupled; and (ii) the IP1 and the OP1 are optically disconnected, and the IP1 and the OP2 are optically connected by using the first movable waveguide; the first movable waveguide comprises a first input section and a first output section; when the first movable waveguide is at the second location, the first input section of the first movable waveguide and the first waveguide form a first coupler, and the first output section of the first movable waveguide and the second waveguide form a second coupler; the first movable waveguide further comprises a connecting section Z configured to connect the first input section and the first output section, and the optical switch further comprises a support component configured to connect to the connecting section to make the middle section of the first movable waveguide be fixed relative to the substrate and two ends of the first movable waveguide are perpendicularly movable relative to the first plane, wherein the first movable waveguide is not located in the first plane, and the first movable waveguide is configured to deform in a direction perpendicular to the first plane. the first waveguide is immovable relative to the substrate, and the first waveguide has a first input port IP1 and a first output port OP1; the second waveguide is immovable relative to the substrate, the second waveguide has a second output port OP2, the first waveguide and the second waveguide are located in a first plane, and the first waveguide and the second waveguide do not intersect; the first movable waveguide is movable relative to the substrate; when the first movable waveguide is at a first location (i) the first movable waveguide and the first waveguide are optically decoupled, and the first movable waveguide and the second waveguide are optically decoupled; and (ii) the IP1 and the OP1 are optically connected, and the IP1 and the OP2 are optically disconnected; and when the first movable waveguide is at a second location (i) the first movable waveguide and the first waveguide are optically coupled, and the first movable waveguide and the second waveguide are optically coupled; and (ii) the IP1 and the OP1 are optically disconnected, and the IP1 and the OP2 are optically connected by using the first movable waveguide; the first movable waveguide comprises a first input section and a first output section; when the first movable waveguide is at the second location, the first input section of the first movable waveguide and the first waveguide form a first coupler, and the first output section of the first movable waveguide and the second waveguide form a second coupler; the first movable waveguide further comprises a connecting section Z configured to connect the first input section and the first output section, and the optical switch further comprises a support component configured to connect to the connecting section to make the middle section of the first movable waveguide be fixed relative to the substrate and two ends of the first movable waveguide are perpendicularly movable relative to the first plane, wherein the first movable waveguide is not located in the first plane, and the first movable waveguide is configured to deform in a direction perpendicular to the first plane.