Specialty in psychiatry can be traced in Ancient India. The oldest texts on psychiatry include the ayurvedic text, Charaka Samhita. Some of the first hospitals for curing mental illness were established during the 3rd century BCE.
During the 5th century BCE, mental disorders, especially those with psychotic traits, were considered supernatural in origin, a view which existed throughout ancient Greece and Rome. The beginning of psychiatry as a medical specialty is dated to the middle of the nineteenth century, although one may trace its germination to the late eighteenth century.
Some of the early manuals about mental disorders were created by the Greeks. In the 4th century BCE, Hippocrates theorized that physiological abnormalities may be the root of mental disorders. In 4th- to 5th-century BCE Greece, Hippocrates wrote that he visited Democritus and found him in his garden cutting open animals. Democritus explained that he was attempting to discover the cause of madness and melancholy. Hippocrates praised his work. Democritus had with him a book on madness and melancholy.