A USB cable is used to connect devices to a computer or to each other. USB cables can transfer data, provide power, and charge devices.