The examination of surgically obtained tissue specimens under a microscope, in order to diagnose a pathology.