A high-speed and open-top ultraviolet photoacoustic microscope that can provide histological images intraoperatively for surgical margin analysis is demonstrated, including the system configuration, optical alignment, sample preparation, and experimental procedures.