There is obviously a long an unpleasant history of the treatment of people with mental health disorders, but I'm sure that didn't stop good people from trying to come up with humane and effective treatments.
Lithium has been used since the late 1800s to treat mania:
Lithium: A History of the First Mood Stabilizer