Urinalysis is a test that examines the urine for various substances, such as red and white blood cells, protein, glucose, and bacteria. It helps diagnose urinary tract infections, kidney problems, and other conditions.