To prevent cables from tangling, use cable sleeves to bundle multiple cords together and secure them with cable ties or clips along the underside of your desk. An under-desk cable tray or basket can also help by keeping cables contained and off the floor. Additionally, organizing cables based on function and regularly adjusting the setup can prevent tangling over time.