Modern psychiatric hospitals evolved from, and eventually replaced the older lunatic asylums. The treatment of inmates in early lunatic asylums was sometimes brutal and focused on containment and restraint. With successive waves of reform, and the introduction of effective evidence-based treatments, most modern psychiatric hospitals provide a primary emphasis on treatment, and attempt where possible to help patients control their own lives in the outside world, with the use of a combination of psychiatric drugs and psychotherapy. An exception is in Japan, where many psychiatric hospitals still use physical restraints on patients, tying them to their beds for days or even months at a time.
A crisis stabilization unit is in effect an emergency room for psychiatry, frequently dealing with suicidal, violent, or otherwise critical individuals. Open units are psychiatric units that are not as secure as crisis stabilization units. Another type of psychiatric hospital is medium term, which provides care lasting several weeks. In the United Kingdom, both crisis admissions and medium term care is usually provided on acute admissions wards. Juvenile or adolescent wards are sections of psychiatric hospitals or psychiatric wards set aside for children or adolescents with mental illness. Long-term care facilities have the goal of treatment and rehabilitation back into society within a short time-frame (two or three years). Another institution for the mentally ill is a community-based halfway house.
Modern psychiatric hospitals evolved from, and eventually replaced the older lunatic asylums. The development of the modern psychiatric hospital is also the story of the rise of organized, institutional psychiatry. The moral treatment and care of the mentally ill, as opposed to isolation, was first pioneered in the Islamic world by physicians whose treatment of mental patients was regarded as a religious obligation based on the Quranic verse Do not give the property with which God has entrusted you to the insane, but feed and clothe them with this property and speak kindly to them. It greatly differed from the reigning view in which the insane were viewed as under the influence of the Devil therefore needing to be isolated from society. The first psychiatric hospital was built by the Muslims in Baghdad in 705 AD, under the leadership of the Umayyad Caliph Al-Walid ibn Abd al-Malik. Others would rapidly follow, with some of the more famous ones being built in Cairo in 800 AD and in Damascus in 1270 AD. The physicians of the Islamic world would invent and use a variety of treatments, including occupational therapy, music therapy, as well as medication.
Western Europe would adopt these views later on with the advances of physicians like Philippe Pinel at the Bicêtre Hospital in France and William Tuke at the York Retreat in England. They advocated the viewing of mental illness as a disorder that required compassionate treatment that would aid in the rehabilitation of the victim. The arrival in the Western world of institutionalisation as a solution to the problem of madness was very much an event of the nineteenth century. The first public mental asylums were established in Britain; the passing of the County Asylums Act 1808 empowered magistrates to build rate-supported asylums in every county to house the many 'pauper lunatics'. Nine counties first applied, the first public asylum opening in 1812 in Nottinghamshire. In 1828, the newly appointed Commissioners in Lunacy were empowered to license and supervise private asylums. The Lunacy Act 1845 made the construction of asylums in every country compulsory with regular inspections on behalf of the Home Secretary. The Act required asylums to have written regulations and to have a resident physician.
At the beginning of the nineteenth century there were a few thousand "sick people" housed in a variety of disparate institutions throughout England, but by 1900 that figure had grown to about 100,000. This growth coincided with the growth of alienism, later known as psychiatry, as a medical specialism. The treatment of inmates in early lunatic asylums was sometimes very brutal and focused on containment and restraint.