Histological diagnosis of a UTI involves examining tissue samples under a microscope. Pathologists look for signs of inflammation, epithelial damage, and bacterial presence. Special stains, such as Gram stain, can be used to identify the type of bacteria involved in the infection.