Urine cytology is a diagnostic test that examines cells from a urine sample under a microscope. It is primarily used to detect cancerous and pre-cancerous conditions of the urinary tract, including the bladder, ureters, and renal pelvis. The test can also help identify infections or inflammatory conditions affecting these organs.