To determine which disease is causing a sick person's signs and symptoms; to find the diagnosis.
(by extension) To determine the cause of a problem.