You should avoid wearing cotton socks while hiking because they tend to retain moisture, which can cause friction and blisters. Instead, opt for moisture-wicking materials like synthetic or wool socks that help keep your feet dry and comfortable during your hike.