The main difference between UTP and STP cables is the presence of shielding. STP cables offer better protection against electromagnetic interference and crosstalk compared to UTP cables.