Biopsies play a crucial role in cancer detection by providing a sample of tissue or cells for microscopic analysis to accurately diagnose the presence, type, and stage of cancer. This helps guide treatment decisions and assess the effectiveness of therapies.