Cystoscopy plays a crucial role in diagnosing bladder cancer. It enables direct visualization of the bladder's interior, allowing the doctor to identify tumors, polyps, and other suspicious growths. This direct observation is more accurate than imaging tests like ultrasound or CT scans, making it invaluable for early detection and diagnosis.