Optical fiber can be used as a medium for telecommunication and computer networking because it is flexible and can be bundled in cables. It is advantageous for long-distance communications, as light propagates through the fiber with little alteration compared to electrical cables.