In 1247 CE, a small monastery called St. Mary of Bethlehem was founded in London. It became a part-time hospital in the 1330s, and by the time of the Black Death a few years later, it was a full-time health center. At the dawn of the fifteenth century, they began admitting "lunatic" patients, and in 1547 it dropped any vestiges of being a monastery, officially becoming a city asylum. However, the patients there weren't treated very well, with some being shackled, tortured, or abused. A general atmosphere of bad chaos became associated with the place. Incidentally, over the many years of it being open, people got bored with the whole long name St. Mary of Bethlehem and eventually reduced it to just Bethlehem, which the English accent mangled to Bethlem, a word that was recorded as Bedlam. By now you will have drawn the comparison; today bedlam is a noun meaning "a violet or confusing situation". The word bedlam was used most in the seventeenth century, when it went colloquial, and usage has been decreasing steadily over the past couple decades.
Adam Aleksic, a freshman studying linguistics at Harvard University, has been described as the internet's sixth most famous etymologist. He has disturbing interests in words, vexillology, geography, board games, limericks, and law, and he loves writing about himself in the third person.
The Etymology Nerd