American Insane Asylum History:
In the 1800s, people were put into mental institutions for all kinds of things: wives and daughters who did not obey their husbands/fathers were sent there, as were "angry people", alcoholics, depressives, menopausal women, and people caught masturbating. Challenging the status quo was also grounds for questioning one's mental health.
With severe overcrowding, more patients had to be restrained in the hospitals. Shock treatment, as well as extreme treatments such as lobotomies, came into vogue in the 1930s. Later, pharmaceutical remedies replaced these treatments, and fewer people were institutionalized.